From: Coleman Watts Date: Sat, 19 Feb 2022 17:42:33 +0000 (-0500) Subject: APIv4 - Add MailingGroup API X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=04146198a08bb79fbf16ba67718fb12da2539f96;p=civicrm-core.git APIv4 - Add MailingGroup API --- diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 93592c8e01..7f065f0af8 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -3014,8 +3014,16 @@ ORDER BY civicrm_mailing.name"; */ public static function mailingGroupEntityTables() { return [ - CRM_Contact_BAO_Group::getTableName() => 'Group', - CRM_Mailing_BAO_Mailing::getTableName() => 'Mailing', + [ + 'id' => CRM_Contact_BAO_Group::getTableName(), + 'name' => 'Group', + 'label' => ts('Group'), + ], + [ + 'id' => CRM_Mailing_BAO_Mailing::getTableName(), + 'name' => 'Mailing', + 'label' => ts('Mailing'), + ], ]; } diff --git a/Civi/Api4/MailingGroup.php b/Civi/Api4/MailingGroup.php new file mode 100644 index 0000000000..5f69b5f03d --- /dev/null +++ b/Civi/Api4/MailingGroup.php @@ -0,0 +1,24 @@ +