DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / PCP / DAO / PCPBlock.php
index 74f5204bebd1689474013f8bbceada3d53e39dd0..711dc584c95971859b0ec2a695b62237c6dfe39c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/PCP/PCPBlock.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ea1b4158570c5a79356b1dc0ad80db6a)
+ * (GenCodeChecksum:2039aecf7902bf0fda7f91081778b1c8)
  */
 
 /**
@@ -129,9 +129,12 @@ class CRM_PCP_DAO_PCPBlock 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('PCPBlocks');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('PCPBlocks') : ts('PCPBlock');
   }
 
   /**