DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / ACL / DAO / EntityRole.php
index 9130d307ae4c3e1ea10b6bc2a382f48eb3525386..4e31bd8466f96b148a1edf85da78e58dae169b21 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/ACL/EntityRole.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d985c951ef9a8872008576b41c1f2b9c)
+ * (GenCodeChecksum:c1087517beb5b266d4a1a0a1a342ced0)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_ACL_DAO_EntityRole 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('Entity Roles');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Roles') : ts('Entity Role');
   }
 
   /**