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()
File
- src/
EntityUsageSourceLevel.php, line 57
Class
- EntityUsageSourceLevel
- Defines the interface for the service managing top-level source entities.
Namespace
Drupal\entity_usageCode
public static function getMiddleLevelEntityTypes() {
// For us all entities that are not bottom are middle.
return array_diff(array_keys(\Drupal::entityTypeManager()
->getDefinitions()), self::getBottomLevelEntityTypes());
}