public function HtmlFormController::setContainer

Injects the service container used by this object.

Parameters

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

Overrides ContainerAwareInterface::setContainer

File

drupal/core/lib/Drupal/Core/Controller/HtmlFormController.php, line 33
Contains \Drupal\Core\Controller\HtmlFormController.

Class

HtmlFormController
Wrapping controller for forms that serve as the main page body.

Namespace

Drupal\Core\Controller

Code

public function setContainer(ContainerInterface $container = NULL) {
  $this->container = $container;
}