W3cubDocs

/Drupal 8

class ParamConversionEnhancer

Provides a route enhancer that handles parameter conversion.

Hierarchy

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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!Enhancer!ParamConversionEnhancer.php/class/ParamConversionEnhancer/8.1.x