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 222

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;
}
doc_Drupal
2016-10-29 09:07:27
Comments
Leave a Comment

Please login to continue.