public function ControllerResolver::getController in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Controller/ControllerResolver.php \Drupal\Core\Controller\ControllerResolver::getController()
File
- core/
lib/ Drupal/ Core/ Controller/ ControllerResolver.php, line 84
Class
- ControllerResolver
- ControllerResolver to enhance controllers beyond Symfony's basic handling.
Namespace
Drupal\Core\ControllerCode
public function getController(Request $request) {
if (!($controller = $request->attributes
->get('_controller'))) {
return FALSE;
}
return $this
->getControllerFromDefinition($controller, $request
->getPathInfo());
}