DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Email.php
index 7c0a55b812bdbb031ec7904f0752eb9a81ee3a94..4f890d5cf0b0edbb1f5d8d64ff65feb991943521 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Email.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:866b627595adac9091080a4e4ab146bc)
+ * (GenCodeChecksum:2736b767bcd747315f0382f4e298ad35)
  */
 
 /**
@@ -131,9 +131,12 @@ class CRM_Core_DAO_Email 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('Emails');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Emails') : ts('Email');
   }
 
   /**