DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contribute / DAO / Widget.php
index 5da47438da53eebf0e55504fd27d37a6cc5d7a05..a49f0a9471d9f9fd65e69c7061c225f412de0102 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Widget.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e24eaf675b793969d408fbc0f847a9ed)
+ * (GenCodeChecksum:bb99920b9b2c2a8b7419ecd94dcbf577)
  */
 
 /**
@@ -141,9 +141,12 @@ class CRM_Contribute_DAO_Widget 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('Widgets');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Widgets') : ts('Widget');
   }
 
   /**