You are here

public function ContactController::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contact/src/Controller/ContactController.php \Drupal\contact\Controller\ContactController::__construct()
  2. 9 core/modules/contact/src/Controller/ContactController.php \Drupal\contact\Controller\ContactController::__construct()

Constructs a ContactController object.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/contact/src/Controller/ContactController.php, line 31

Class

ContactController
Controller routines for contact routes.

Namespace

Drupal\contact\Controller

Code

public function __construct(RendererInterface $renderer) {
  $this->renderer = $renderer;
}