DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Financial / DAO / PaymentToken.php
index cb2498f0832ce707ce30376124dd732ba81670b0..1608dab55d72e644c1bd9e6f208cf73f42ccd427 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/PaymentToken.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ce51f1e6eaf6b29f3adeb67828e85507)
+ * (GenCodeChecksum:2923b7966bbe25d435eb7b909d35541f)
  */
 
 /**
@@ -129,9 +129,12 @@ class CRM_Financial_DAO_PaymentToken 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('Payment Tokens');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Payment Tokens') : ts('Payment Token');
   }
 
   /**