DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Event / Cart / DAO / Cart.php
index 38da6b32272d210f3ee7c86576a908a48e075e56..bf8ece70d43a145dab456c6b65935244eb96688a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Cart/Cart.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b4aacbeb6deddb31e520ce700e774db5)
+ * (GenCodeChecksum:b7a4ad0bbb09a64b8afefd7a1a2d6a9b)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Event_Cart_DAO_Cart 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('Carts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Carts') : ts('Cart');
   }
 
   /**