DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Dedupe / DAO / RuleGroup.php
index 366ff64246d5e3d0ca78a01709223e41db7305b4..62c6a4b2d01771b5c2adb047e77a9a4b157ca2a9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/RuleGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:87a385df0b5bca8150117411f2c31a4a)
+ * (GenCodeChecksum:5fb31b058249567562ab0a30a739fda2)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Dedupe_DAO_RuleGroup 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('Rule Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Rule Groups') : ts('Rule Group');
   }
 
   /**