interface ControllerInterface

Defines a common interface for route controllers.

Hierarchy

Expanded class hierarchy of ControllerInterface

All classes that implement ControllerInterface

43 files declare their use of ControllerInterface
ActionAdminManageForm.php in drupal/core/modules/action/lib/Drupal/action/Form/ActionAdminManageForm.php
Contains \Drupal\action\Form\ActionAdminManageForm.
AdminController.php in drupal/core/modules/system/lib/Drupal/system/Controller/AdminController.php
Contains \Drupal\system\Controller\AdminController.
AggregatorController.php in drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php
Contains \Drupal\aggregator\Controller\AggregatorController.
BanAdmin.php in drupal/core/modules/ban/lib/Drupal/ban/Form/BanAdmin.php
Contains \Drupal\ban\Form\BanAdmin.
BanDelete.php in drupal/core/modules/ban/lib/Drupal/ban/Form/BanDelete.php
Contains \Drupal\ban\Form\BanDelete.

... See full list

File

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

Namespace

Drupal\Core\Controller
View source
interface ControllerInterface {

  /**
   * Instantiates a new instance of this controller.
   *
   * This is a factory method that returns a new instance of this object. The
   * factory should pass any needed dependencies into the constructor of this
   * object, but not the container itself. Every call to this method must return
   * a new instance of this object; that is, it may not implement a singleton.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   *   The service container this object should use.
   */
  public static function create(ContainerInterface $container);

}

Members

Namesort descending Modifiers Type Description Overrides
ControllerInterface::create public static function Instantiates a new instance of this controller. 43