DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Event / DAO / Event.php
index a7febe5bfe94e9be9e40fd3e911f899c97da69a5..553ddd7e1f39bc3fd4a9bcab1128a370b249b802 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Event.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:82ba48cbb804cf6f4b26fa50f07d44db)
+ * (GenCodeChecksum:3514f838a27ddbf9bdf6e63ea20aabec)
  */
 
 /**
@@ -528,9 +528,12 @@ class CRM_Event_DAO_Event 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('Events');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Events') : ts('Event');
   }
 
   /**