You are here

public static function EntityUsageSourceLevel::getMiddleLevelEntityTypes in Entity Usage 8.3

Returns all entity type names that are defined as middle-level.

Return value

string[] An indexed array of middle-level entity type machine names.

Overrides EntityUsageSourceLevelInterface::getMiddleLevelEntityTypes

1 call to EntityUsageSourceLevel::getMiddleLevelEntityTypes()
_entity_usage_field_deleted_helper in ./entity_usage.module

File

src/EntityUsageSourceLevel.php, line 57

Class

EntityUsageSourceLevel
Defines the interface for the service managing top-level source entities.

Namespace

Drupal\entity_usage

Code

public static function getMiddleLevelEntityTypes() {

  // For us all entities that are not bottom are middle.
  return array_diff(array_keys(\Drupal::entityTypeManager()
    ->getDefinitions()), self::getBottomLevelEntityTypes());
}