DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / LocBlock.php
index 154a2e776c611457313b7891800c34bfe2a1d868..2eca88b4b625f4792d70a00d5c5fe4be673bd4de 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/LocBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8459c5a6d25e5c70e44de49b109a82fa)
+ * (GenCodeChecksum:801a2e7e05f688cf38882b466f22a292)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Core_DAO_LocBlock 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('Loc Blocks');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Loc Blocks') : ts('Loc Block');
   }
 
   /**