DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Cache.php
index 01bc33ea91c53c34348d14bf780e11976cf54ed2..f8366cb2d037f34c0b72202d0bc182702d34c16c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Cache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:af1401f844c699c6ad35366a32a8db03)
+ * (GenCodeChecksum:bafe6ce2f7fd94b2581bfc4dad813130)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Core_DAO_Cache 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('Caches');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Caches') : ts('Cache');
   }
 
   /**