Provides a route enhancer that handles parameter conversion.
Hierarchy
- class \Drupal\Core\Routing\Enhancer\ParamConversionEnhancer implements RouteEnhancerInterface, EventSubscriberInterface
File
- core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php, line 19
Namespace
Drupal\Core\Routing\Enhancer
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ParamConversionEnhancer::$paramConverterManager | protected | property | The parameter conversion manager. |
ParamConversionEnhancer::applies | public | function | Declares if the route enhancer applies to the given route. Overrides RouteEnhancerInterface::applies |
ParamConversionEnhancer::copyRawVariables | protected | function | Store a backup of the raw values that corresponding to the route pattern. |
ParamConversionEnhancer::enhance | public | function | Update the defaults based on its own data and the request. Overrides RouteEnhancerInterface::enhance |
ParamConversionEnhancer::getSubscribedEvents | public static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
ParamConversionEnhancer::onException | public | function | Catches failed parameter conversions and throw a 404 instead. |
ParamConversionEnhancer::__construct | public | function | Constructs a new ParamConversionEnhancer. |
Please login to continue.