Merge pull request #18714 from MegaphoneJon/financial-111
[civicrm-core.git] / CRM / Contact / DAO / Contact.php
index eb95bc6f3d9f88c8d89924b3cd54b389022057ba..c585b127039b72171f6e390c44967ce5a1900020 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Contact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:254705f91b182cf2ded06a3caf578f6e)
+ * (GenCodeChecksum:f118596cceae71668861504b7316afa7)
  */
 
 /**
@@ -397,9 +397,12 @@ class CRM_Contact_DAO_Contact 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('Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contacts') : ts('Contact');
   }
 
   /**
@@ -1402,7 +1405,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
         'current_employer_id' => [
           'name' => 'employer_id',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('Current Employer'),
+          'title' => ts('Current Employer ID'),
           'description' => ts('OPTIONAL FK to civicrm_contact record.'),
           'where' => 'civicrm_contact.employer_id',
           'export' => TRUE,
@@ -1414,6 +1417,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'FKClassName' => 'CRM_Contact_DAO_Contact',
           'html' => [
             'type' => 'EntityRef',
+            'label' => ts("Current Employer"),
           ],
           'add' => '2.1',
         ],