You are here

interface ControllerResolverInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/Controller/ControllerResolverInterface.php \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface
  2. 8 core/lib/Drupal/Core/Controller/ControllerResolverInterface.php \Drupal\Core\Controller\ControllerResolverInterface
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Controller/ControllerResolverInterface.php \Drupal\Core\Controller\ControllerResolverInterface

Extends the ControllerResolverInterface from symfony.

Hierarchy

Expanded class hierarchy of ControllerResolverInterface

All classes that implement ControllerResolverInterface

9 files declare their use of ControllerResolverInterface
ContextualLinkManager.php in core/lib/Drupal/Core/Menu/ContextualLinkManager.php
Contains \Drupal\Core\Menu\ContextualLinkManager.
CustomAccessCheck.php in core/lib/Drupal/Core/Access/CustomAccessCheck.php
Contains \Drupal\Core\Access\CustomAccessCheck.
EarlyRenderingControllerWrapperSubscriber.php in core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
Contains \Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.
HtmlEntityFormController.php in core/lib/Drupal/Core/Entity/HtmlEntityFormController.php
Contains \Drupal\Core\Entity\HtmlEntityFormController.
LocalTaskManager.php in core/lib/Drupal/Core/Menu/LocalTaskManager.php
Contains \Drupal\Core\Menu\LocalTaskManager.

... See full list

File

core/lib/Drupal/Core/Controller/ControllerResolverInterface.php, line 15
Contains \Drupal\Core\Controller\ControllerResolverInterface.

Namespace

Drupal\Core\Controller
View 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

Namesort descending Modifiers Type Description Overrides
ControllerResolverInterface::getArguments public function Returns the arguments to pass to the controller. 5
ControllerResolverInterface::getController public function Returns the Controller instance associated with a Request. 5
ControllerResolverInterface::getControllerFromDefinition public function Returns the Controller instance with a given controller route definition. 1