DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contact / DAO / Contact.php
index f91dc3264b1e5e35928815f8b2b63d80434c65c3..c585b127039b72171f6e390c44967ce5a1900020 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Contact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f58884560d4f49764182cd97f1bbbcdf)
+ * (GenCodeChecksum:f118596cceae71668861504b7316afa7)
  */
 
 /**
@@ -397,9 +397,12 @@ class CRM_Contact_DAO_Contact 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('Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contacts') : ts('Contact');
   }
 
   /**