From 449046c9fc65e3c9589040d45ba2679a33303609 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 18 May 2021 11:31:44 -0400 Subject: [PATCH] Add icon to ContactNamePair and remove redundant keys from Afform entity Now name, label and icon will all be fetched from metadata. --- CRM/Deduper/DAO/ContactNamePair.php | 9 ++++++++- afformEntities/ContactNamePair.php | 2 -- xml/schema/CRM/Deduper/ContactNamePair.xml | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CRM/Deduper/DAO/ContactNamePair.php b/CRM/Deduper/DAO/ContactNamePair.php index b005f68..d6c7f6f 100644 --- a/CRM/Deduper/DAO/ContactNamePair.php +++ b/CRM/Deduper/DAO/ContactNamePair.php @@ -6,7 +6,7 @@ * * Generated from deduper/xml/schema/CRM/Deduper/ContactNamePair.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c6ca9e954268d2ef31c012aacaf1beab) + * (GenCodeChecksum:14169dfb608f5f20181c3b38897af46b) */ use CRM_Deduper_ExtensionUtil as E; @@ -24,6 +24,13 @@ class CRM_Deduper_DAO_ContactNamePair extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_contact_name_pair'; + /** + * Icon associated with this entity. + * + * @var string + */ + public static $_icon = 'fa-random'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/afformEntities/ContactNamePair.php b/afformEntities/ContactNamePair.php index 2fed3da..3b84c92 100644 --- a/afformEntities/ContactNamePair.php +++ b/afformEntities/ContactNamePair.php @@ -1,6 +1,4 @@ 'ContactNamePair', - 'label' => 'Equivalent name pair', 'defaults' => "{'url-autofill': '1'}", ]; diff --git a/xml/schema/CRM/Deduper/ContactNamePair.xml b/xml/schema/CRM/Deduper/ContactNamePair.xml index 32ea6ea..d5def75 100644 --- a/xml/schema/CRM/Deduper/ContactNamePair.xml +++ b/xml/schema/CRM/Deduper/ContactNamePair.xml @@ -5,6 +5,7 @@ ContactNamePair civicrm_contact_name_pair Pairs of names which are equivalent + fa-random true