DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / OptionValue.php
index 7f0c3644f208aa9db0ef521c0f066bb9de23a826..5fb8ddb4521fddd174fc84ec15adaab4ae52fad1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionValue.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e51b16ecfe5f8302c8610b7f5dfd55e5)
+ * (GenCodeChecksum:f47024ac081427ddadce4c569934f8a6)
  */
 
 /**
@@ -164,9 +164,12 @@ class CRM_Core_DAO_OptionValue 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('Option Values');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Option Values') : ts('Option Value');
   }
 
   /**