DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / EntityFile.php
index 0d32257d1e18d5c8f5d46a905147ac65011fbcef..e405a0d0d6a6c08a25ebd721661ab4402ea45317 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/EntityFile.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f2d4dfec2466ad664b4949983b1c7e58)
+ * (GenCodeChecksum:70221552c8c9532b2aaf9cd89e73a68d)
  */
 
 /**
@@ -68,9 +68,12 @@ class CRM_Core_DAO_EntityFile 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 Files');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Entity Files') : ts('Entity File');
   }
 
   /**