You are here

public function DomainPathHelper::getConfiguredEntityTypes in Domain Path 8

Helper function for retrieving configured entity types.

Return value

array Returns array of configured entity types.

1 call to DomainPathHelper::getConfiguredEntityTypes()
DomainPathHelper::domainPathsIsEnabled in src/DomainPathHelper.php
Check if domain paths is enabled for a given entity.

File

src/DomainPathHelper.php, line 444

Class

DomainPathHelper

Namespace

Drupal\domain_path

Code

public function getConfiguredEntityTypes() {
  $enabled_entity_types = $this->config
    ->get('entity_types');
  $enabled_entity_types = array_filter($enabled_entity_types);
  return array_keys($enabled_entity_types);
}