DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / AddressFormat.php
index 762b90b6a177136e61d4353dd7e0fb57a35f0251..d1c1d088427b811ca49e9facd74197e1453c217e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/AddressFormat.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1ce11647576d05acfc364969eddfcce4)
+ * (GenCodeChecksum:7cc2864a78be48031ca829de49afeef6)
  */
 
 /**
@@ -54,9 +54,12 @@ class CRM_Core_DAO_AddressFormat 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('Address Formats');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Address Formats') : ts('Address Format');
   }
 
   /**