DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Mailing / Event / DAO / Unsubscribe.php
index e5a230b66dc76be60070e87969b3db4398cd89c4..71432c59ab116e4fe2f7493441ba7ca8bd698d1d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:2d080a63032c9dce0331a6ed4f6c3cd2)
+ * (GenCodeChecksum:48ace30af145c288185e356b721a22d1)
  */
 
 /**
@@ -66,9 +66,12 @@ class CRM_Mailing_Event_DAO_Unsubscribe 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('Unsubscribes');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Unsubscribes') : ts('Unsubscribe');
   }
 
   /**