DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Navigation.php
index b567777810a4405d38851f507252262671f64af7..ed52b19610f37387c71cb0a40755d9e27646fde2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Navigation.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:34c3d3b834400b49f1b8c6c99a08c99e)
+ * (GenCodeChecksum:8cc5473f0cd98bf289dc455eefb0af76)
  */
 
 /**
@@ -122,9 +122,12 @@ class CRM_Core_DAO_Navigation 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('Navigations');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Navigations') : ts('Navigation');
   }
 
   /**