Add titles and icons to entities
[civicrm-core.git] / CRM / Pledge / DAO / Pledge.php
index dba81cf4ae075611009cbb8617d561efcfc18c21..1d001b841195717ca97594578d44bc5dfb718955 100644 (file)
@@ -2,11 +2,11 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2020
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
  *
  * Generated from xml/schema/CRM/Pledge/Pledge.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a25cc68d8392b1d60d7179ca484b604a)
+ * (GenCodeChecksum:7beeffe02aa5aa08578f40547b3c61bd)
  */
 
 /**
@@ -21,6 +21,13 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_pledge';
 
+  /**
+   * Icon associated with this entity.
+   *
+   * @var string
+   */
+  public static $_icon = 'fa-paper-plane';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
@@ -195,6 +202,13 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
     parent::__construct();
   }
 
+  /**
+   * Returns localized title of this entity.
+   */
+  public static function getEntityTitle() {
+    return ts('Pledges');
+  }
+
   /**
    * Returns foreign keys and entity references.
    *