DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Extension.php
index c666e3ab0222b5338cbb22a59f118ae5cd61c424..b1fc0de3f60ff8ad9e2c495b906ba742ada64f55 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Extension.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:08d2151b75e68f334bd88475b58fab7b)
+ * (GenCodeChecksum:46f6ff725b1ad9909d2340d728438d36)
  */
 
 /**
@@ -94,9 +94,12 @@ class CRM_Core_DAO_Extension 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('Extensions');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Extensions') : ts('Extension');
   }
 
   /**