<?php
-
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
namespace Civi\Api4;
/**
* A contact can either be "Added" "Removed" or "Pending" in a group.
* CiviCRM only considers them to be "in" a group if their status is "Added".
*
- * @bridge group_id contact_id
+ * @ui_join_filters status
+ *
+ * @searchable bridge
* @see \Civi\Api4\Group
- * @searchable false
+ * @since 5.19
* @package Civi\Api4
*/
class GroupContact extends Generic\DAOEntity {
->setCheckPermissions($checkPermissions);
}
+ /**
+ * @return array
+ */
+ public static function getInfo() {
+ $info = parent::getInfo();
+ $info['bridge'] = [
+ 'group_id' => ['description' => ts('Static (non-smart) group contacts')],
+ 'contact_id' => ['description' => ts('Static (non-smart) group contacts')],
+ ];
+ return $info;
+ }
+
}