Merge pull request #18281 from sunilpawar/report_48
[civicrm-core.git] / xml / templates / dao.tpl
index 87a3463531c9a096e0b7abfdcca99893207263ae..034137433ed489ed46385eb3060fc5bfcbb3c550 100644 (file)
@@ -61,9 +61,12 @@ class {$table.className} extends CRM_Core_DAO {ldelim}
 
     /**
      * Returns localized title of this entity.
+     *
+     * @param bool $plural
+     *   Whether to return the plural version of the title.
      */
-    public static function getEntityTitle() {ldelim}
-        return {$tsFunctionName}('{$table.title}');
+    public static function getEntityTitle($plural = FALSE) {ldelim}
+        return $plural ? {$tsFunctionName}('{$table.titlePlural}') : {$tsFunctionName}('{$table.title}');
     {rdelim}