You are here

protected function EntityResolverManager::getEntityTypes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityResolverManager.php \Drupal\Core\Entity\EntityResolverManager::getEntityTypes()

Gets the list of all entity types.

Return value

\Drupal\Core\Entity\EntityTypeInterface[]

1 call to EntityResolverManager::getEntityTypes()
EntityResolverManager::setParametersFromReflection in core/lib/Drupal/Core/Entity/EntityResolverManager.php
Sets the upcasting information using reflection.

File

core/lib/Drupal/Core/Entity/EntityResolverManager.php, line 224
Contains \Drupal\Core\Entity\EntityResolverManager.

Class

EntityResolverManager
Sets the entity route parameter converter options automatically.

Namespace

Drupal\Core\Entity

Code

protected function getEntityTypes() {
  if (!isset($this->entityTypes)) {
    $this->entityTypes = $this->entityManager
      ->getDefinitions();
  }
  return $this->entityTypes;
}