DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contact / DAO / RelationshipType.php
index e703e2fe849b78e5065561a73fa2e65504b74f88..3ac981c81f84193346c2d7af75dc0109e51f72f6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/RelationshipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6e9767fcd0fc6eba8fcd408588fe0755)
+ * (GenCodeChecksum:258f862b2238ae69432d8955ae8df803)
  */
 
 /**
@@ -124,9 +124,12 @@ class CRM_Contact_DAO_RelationshipType 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('Relationship Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationship Types') : ts('Relationship Type');
   }
 
   /**