You are here

public function ApigeeActionsEntityTypeHelper::getEntityTypes in Apigee Edge 8

Returns an array of Apigee Edge entity types.

Return value

\Drupal\Core\Entity\EntityTypeInterface[] An array of Apigee Edge entity types.

Overrides ApigeeActionsEntityTypeHelperInterface::getEntityTypes

File

modules/apigee_edge_actions/src/ApigeeActionsEntityTypeHelper.php, line 52

Class

ApigeeActionsEntityTypeHelper
Defines the apigee_edge_actions.edge_entity_type_manager service.

Namespace

Drupal\apigee_edge_actions

Code

public function getEntityTypes() : array {
  return array_filter($this->entityTypeManager
    ->getDefinitions(), function (EntityTypeInterface $entity_type) {
    return $this
      ->isFieldableEdgeEntityType($entity_type);
  });
}