You are here

public function ParamConverterSubscriber::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php \Drupal\Core\EventSubscriber\ParamConverterSubscriber::__construct()

Constructs a new ParamConverterSubscriber.

Parameters

\Drupal\Core\ParamConverter\ParamConverterManagerInterface $param_converter_manager: The parameter converter manager that will be responsible for upcasting request attributes.

File

core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php, line 29

Class

ParamConverterSubscriber
Event subscriber for registering parameter converters with routes.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ParamConverterManagerInterface $param_converter_manager) {
  $this->paramConverterManager = $param_converter_manager;
}