function ParamConversionEnhancer::__construct

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php \Drupal\Core\Routing\Enhancer\ParamConversionEnhancer::__construct()
  2. 10 core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php \Drupal\Core\Routing\Enhancer\ParamConversionEnhancer::__construct()
  3. 11.x core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php \Drupal\Core\Routing\Enhancer\ParamConversionEnhancer::__construct()

Constructs a new ParamConversionEnhancer.

Parameters

\Drupal\Core\ParamConverter\ParamConverterManagerInterface $param_converter_manager: The parameter conversion manager.

File

core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php, line 34

Class

ParamConversionEnhancer
Provides a route enhancer that handles parameter conversion.

Namespace

Drupal\Core\Routing\Enhancer

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.