DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Mailing / Event / DAO / Subscribe.php
index ce577b24d76a5e7433fcd0c380168c323060c6c3..6659fcca1de2cc57120ff391a8f7540004a59651 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Subscribe.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9e1dec99f17dcccde7feeca30b880a85)
+ * (GenCodeChecksum:b5a2a60211ad6eb943a6aa0db5f88840)
  */
 
 /**
@@ -73,9 +73,12 @@ class CRM_Mailing_Event_DAO_Subscribe 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('Subscribes');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Subscribes') : ts('Subscribe');
   }
 
   /**