public function OnlyOneController::__construct in Allow a content type only once (Only One) 8
Constructs a NodeController object.
Parameters
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
File
- src/
Controller/ OnlyOneController.php, line 28
Class
- OnlyOneController
- Returns responses for Node routes managed by Only One.
Namespace
Drupal\onlyone\ControllerCode
public function __construct(RendererInterface $renderer) {
$this->renderer = $renderer;
}