EntityResolverManager

Sets the entity route parameter converter options automatically.

If controllers of routes with route parameters, type-hint the parameters with an entity interface, upcasting is done automatically.

Hierarchy

File

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

Namespace

Drupal\Core\Entity

Members

Name Modifiers Type Description
EntityResolverManager::$classResolver protected property The class resolver.
EntityResolverManager::$entityManager protected property The entity manager.
EntityResolverManager::getControllerClass protected function Gets the controller class using route defaults.
EntityResolverManager::getEntityTypes protected function Gets the list of all entity types.
EntityResolverManager::setParametersFromEntityInformation protected function Sets the upcasting information using the _entity_* route defaults.
EntityResolverManager::setParametersFromReflection protected function Sets the upcasting information using reflection.
EntityResolverManager::setRouteOptions public function Set the upcasting route objects.
EntityResolverManager::__construct public function Constructs a new EntityRouteAlterSubscriber.
doc_Drupal
2016-10-29 09:07:26
Comments
Leave a Comment

Please login to continue.