You are here

public static function EntityUsageSourceLevel::getBottomLevelEntityTypes in Entity Usage 8.3

Returns all entity type names that are defined as bottom-level (targets).

Return value

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

Overrides EntityUsageSourceLevelInterface::getBottomLevelEntityTypes

1 call to EntityUsageSourceLevel::getBottomLevelEntityTypes()
EntityUsageSourceLevel::getMiddleLevelEntityTypes in src/EntityUsageSourceLevel.php
Returns all entity type names that are defined as middle-level.

File

src/EntityUsageSourceLevel.php, line 65

Class

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

Namespace

Drupal\entity_usage

Code

public static function getBottomLevelEntityTypes() {
  return \Drupal::config('entity_usage.settings')
    ->get('local_task_enabled_entity_types') ?: [];
}