DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Dedupe / DAO / Exception.php
index cdbb87cc90c7b5ba3adc8a051224eec0f87b7fd3..ca488f4208b16aae42107b099a8b845097ab591a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Dedupe/Exception.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f4bc21b42b1b5c9cfb0ffa7d3eb46e65)
+ * (GenCodeChecksum:95d83f44443d6ddfed8758214c46ff1b)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Dedupe_DAO_Exception 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('Exceptions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Exceptions') : ts('Exception');
   }
 
   /**