public static function ControllerInterface::create

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.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this object should use.

43 methods override ControllerInterface::create()
ActionAdminManageForm::create in drupal/core/modules/action/lib/Drupal/action/Form/ActionAdminManageForm.php
Instantiates a new instance of this controller.
AdminController::create in drupal/core/modules/system/lib/Drupal/system/Controller/AdminController.php
Instantiates a new instance of this controller.
AggregatorController::create in drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php
{inheritdoc}
BanAdmin::create in drupal/core/modules/ban/lib/Drupal/ban/Form/BanAdmin.php
Instantiates a new instance of this controller.
BanDelete::create in drupal/core/modules/ban/lib/Drupal/ban/Form/BanDelete.php
Instantiates a new instance of this controller.

... See full list

File

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

Class

ControllerInterface
Defines a common interface for route controllers.

Namespace

Drupal\Core\Controller

Code

public static function create(ContainerInterface $container);