interface ControllerResolverInterface
Same name in other branches
- 9 core/lib/Drupal/Core/Controller/ControllerResolverInterface.php \Drupal\Core\Controller\ControllerResolverInterface
- 10 core/lib/Drupal/Core/Controller/ControllerResolverInterface.php \Drupal\Core\Controller\ControllerResolverInterface
- 11.x core/lib/Drupal/Core/Controller/ControllerResolverInterface.php \Drupal\Core\Controller\ControllerResolverInterface
Extends the ControllerResolverInterface from symfony.
Hierarchy
- interface \Drupal\Core\Controller\ControllerResolverInterface extends \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface
Expanded class hierarchy of ControllerResolverInterface
All classes that implement ControllerResolverInterface
8 files declare their use of ControllerResolverInterface
- ContextualLinkManager.php in core/
lib/ Drupal/ Core/ Menu/ ContextualLinkManager.php - CustomAccessCheck.php in core/
lib/ Drupal/ Core/ Access/ CustomAccessCheck.php - LocalActionManager.php in core/
lib/ Drupal/ Core/ Menu/ LocalActionManager.php - LocalTaskManager.php in core/
lib/ Drupal/ Core/ Menu/ LocalTaskManager.php - MenuLinkTree.php in core/
lib/ Drupal/ Core/ Menu/ MenuLinkTree.php
File
-
core/
lib/ Drupal/ Core/ Controller/ ControllerResolverInterface.php, line 10
Namespace
Drupal\Core\ControllerView source
interface ControllerResolverInterface extends BaseControllerResolverInterface {
/**
* Returns the Controller instance with a given controller route definition.
*
* As several resolvers can exist for a single application, a resolver must
* return false when it is not able to determine the controller.
*
* @param mixed $controller
* The controller attribute like in $request->attributes->get('_controller')
*
* @return mixed|bool
* A PHP callable representing the Controller, or false if this resolver is
* not able to determine the controller
*
* @throws \InvalidArgumentException|\LogicException
* Thrown if the controller can't be found.
*
* @see \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface::getController()
*/
public function getControllerFromDefinition($controller);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ControllerResolverInterface::getControllerFromDefinition | public | function | Returns the Controller instance with a given controller route definition. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.