DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / LocationType.php
index 70648f67db31fbe838d863c08ef0e13b3fa679a5..3427ba89b38bb95514a8ce766a215f2e00ccda2d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/LocationType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:325ccb933339bc909efc7d6b60c7186b)
+ * (GenCodeChecksum:450719aeeb146b60007152d03e0b6faf)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_LocationType 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('Location Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Location Types') : ts('Location Type');
   }
 
   /**