DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Menu.php
index 98f3f4ad1491e196def19bf19f93fab70a2fde00..3fb9a797c3e08ef5dd52c917e09ce7619849c529 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Menu.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8be7941b4dccb08266109e3e1599159f)
+ * (GenCodeChecksum:b94ecc10dafe21deb7e5067ef46f32af)
  */
 
 /**
@@ -190,9 +190,12 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Menus');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Menus') : ts('Menu');
   }
 
   /**