"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/lib/Drupal/Core/Controller/ControllerResolverInterface.php" (26 Nov 2020, 1079 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ControllerResolverInterface.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Drupal\Core\Controller;
    4 
    5 use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface as BaseControllerResolverInterface;
    6 
    7 /**
    8  * Extends the ControllerResolverInterface from symfony.
    9  */
   10 interface ControllerResolverInterface extends BaseControllerResolverInterface {
   11 
   12   /**
   13    * Returns the Controller instance with a given controller route definition.
   14    *
   15    * As several resolvers can exist for a single application, a resolver must
   16    * return false when it is not able to determine the controller.
   17    *
   18    * @param mixed $controller
   19    *   The controller attribute like in $request->attributes->get('_controller')
   20    *
   21    * @return mixed|bool
   22    *   A PHP callable representing the Controller, or false if this resolver is
   23    *   not able to determine the controller
   24    *
   25    * @throws \InvalidArgumentException|\LogicException
   26    *   Thrown if the controller can't be found.
   27    *
   28    * @see \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface::getController()
   29    */
   30   public function getControllerFromDefinition($controller);
   31 
   32 }