DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / SMS / DAO / Provider.php
index 3aa49ab0a6da3128f2b2fca659004cfdc6946ac8..afdd808359ac7b9a2dc278a37c1fe3eb9e7f4fed 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/SMS/Provider.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6ecda65bd52b36e04764cec8ee81e1b8)
+ * (GenCodeChecksum:478e0d0caeb2d2a81068db6ad2db67aa)
  */
 
 /**
@@ -107,9 +107,12 @@ class CRM_SMS_DAO_Provider 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('Providers');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Providers') : ts('Provider');
   }
 
   /**