*/
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'),
+ ],
];
}
--- /dev/null
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved. |
+ | |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+ +--------------------------------------------------------------------+
+ */
+namespace Civi\Api4;
+
+/**
+ * Mailing groups are the groups or mailings included or excluded from mailing recipients.
+ *
+ * @searchable none
+ *
+ * @see https://docs.civicrm.org/user/en/latest/email/what-is-civimail/
+ * @since 5.48
+ * @package Civi\Api4
+ */
+class MailingGroup extends Generic\DAOEntity {
+
+}