APIv4 - Add `@since` annotation to each entity
[civicrm-core.git] / Civi / Api4 / GroupContact.php
index 086fb9b273944e42e338861a95196716d4ec3631..d264bab1cbaf053b85bc67750b0f871033a31261 100644 (file)
@@ -24,9 +24,11 @@ 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 {
@@ -59,4 +61,16 @@ 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;
+  }
+
 }