You are here

public function EdgeEntityRemoveMemberEventDeriver::getEntityTypes in Apigee Edge 8

Returns an array of entity types that are compatible to this event.

Return value

array An array of Edge entity types.

Overrides EdgeEntityEventDeriverBase::getEntityTypes

File

modules/apigee_edge_actions/src/Plugin/RulesEvent/EdgeEntityRemoveMemberEventDeriver.php, line 41

Class

EdgeEntityRemoveMemberEventDeriver
Deriver for Edge entity remove_member events.

Namespace

Drupal\apigee_edge_actions\Plugin\RulesEvent

Code

public function getEntityTypes() : array {

  // Filter out non team entity types.
  return array_filter(parent::getEntityTypes(), function (EdgeEntityTypeInterface $entity_type) {
    return $entity_type
      ->entityClassImplements(TeamInterface::class);
  });
}