function ParamConverterSubscriber::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php \Drupal\Core\EventSubscriber\ParamConverterSubscriber::__construct()
  2. 8.9.x core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php \Drupal\Core\EventSubscriber\ParamConverterSubscriber::__construct()
  3. 11.x 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;
}

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