function ParamConversionEnhancer::getSubscribedEvents

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

File

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

Class

ParamConversionEnhancer
Provides a route enhancer that handles parameter conversion.

Namespace

Drupal\Core\Routing\Enhancer

Code

public static function getSubscribedEvents() {
    $events[KernelEvents::EXCEPTION][] = [
        'onException',
        75,
    ];
    return $events;
}

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