function ContextualController::__construct

Same name in other branches
  1. 9 core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::__construct()
  2. 8.9.x core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::__construct()
  3. 10 core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::__construct()

Constructors a new ContextualController.

Parameters

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

File

core/modules/contextual/src/ContextualController.php, line 32

Class

ContextualController
Returns responses for Contextual module routes.

Namespace

Drupal\contextual

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.