DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / CustomField.php
index 5edafdf5c6e1338110d09d5f64c89c4897fc1c65..a453096360b9319df1479f9d88a298c149fd3b10 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b74179ea5553c544931562d6aac5641e)
+ * (GenCodeChecksum:3a8f6978ec00d7e2cff93f2915ac1f48)
  */
 
 /**
@@ -257,9 +257,12 @@ class CRM_Core_DAO_CustomField 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('Custom Fields');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Custom Fields') : ts('Custom Field');
   }
 
   /**