DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Event / DAO / Participant.php
index 94db537c3abe12954e9d5cbbf37d1316e1530255..3d7a2fa49dbddf5142cb977955203fc6ea296768 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Participant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bf8ed42264e81ccaef0ae236242990d0)
+ * (GenCodeChecksum:97d6a90c8b1f973347dc8decd97f84ee)
  */
 
 /**
@@ -177,9 +177,12 @@ class CRM_Event_DAO_Participant 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('Participants');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Participants') : ts('Participant');
   }
 
   /**