You are here

public function MultiversionManager::getEnabledEntityTypes in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/MultiversionManager.php \Drupal\multiversion\MultiversionManager::getEnabledEntityTypes()

Return value

\Drupal\Core\Entity\EntityTypeInterface[]

Overrides MultiversionManagerInterface::getEnabledEntityTypes

1 call to MultiversionManager::getEnabledEntityTypes()
MultiversionManager::disableEntityTypes in src/MultiversionManager.php

File

src/MultiversionManager.php, line 250

Class

MultiversionManager

Namespace

Drupal\multiversion

Code

public function getEnabledEntityTypes() {
  $entity_types = [];
  foreach ($this
    ->getSupportedEntityTypes() as $entity_type_id => $entity_type) {
    if ($this
      ->isEnabledEntityType($entity_type)) {
      $entity_types[$entity_type_id] = $entity_type;
    }
  }
  return $entity_types;
}