function EntityResolverManager::getEntityTypes
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityResolverManager.php \Drupal\Core\Entity\EntityResolverManager::getEntityTypes()
- 8.9.x core/lib/Drupal/Core/Entity/EntityResolverManager.php \Drupal\Core\Entity\EntityResolverManager::getEntityTypes()
- 11.x 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 235
Class
- EntityResolverManager
- Sets the entity route parameter converter options automatically.
Namespace
Drupal\Core\EntityCode
protected function getEntityTypes() {
if (!isset($this->entityTypes)) {
$this->entityTypes = $this->entityTypeManager
->getDefinitions();
}
return $this->entityTypes;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.