protected function EntityResolverManager::getEntityTypes

protected EntityResolverManager::getEntityTypes()

Gets the list of all entity types.

Return value

\Drupal\Core\Entity\EntityTypeInterface[]

File

core/lib/Drupal/Core/Entity/EntityResolverManager.php, line 219

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityResolverManager.php/function/EntityResolverManager::getEntityTypes/8.1.x