DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contact / DAO / GroupContact.php
index 52c66fd638c930609b4d353de13d309c20b7612d..3cee7b7e07901cbf628d86f250a659b400e7d232 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:143ba4d95cae73fc81c8e932970cbc1f)
+ * (GenCodeChecksum:69e994c5047ecf8d68700c694047720f)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Contact_DAO_GroupContact 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('Group Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Group Contacts') : ts('Group Contact');
   }
 
   /**