function YamlRouteDiscovery::getPriority
Same name and namespace in other branches
- main core/lib/Drupal/Core/Routing/YamlRouteDiscovery.php \Drupal\Core\Routing\YamlRouteDiscovery::getPriority()
Determines the priority of the route build event listener.
Return value
int The priority of the route builder event.
Overrides StaticRouteDiscoveryBase::getPriority
File
-
core/
lib/ Drupal/ Core/ Routing/ YamlRouteDiscovery.php, line 26
Class
- YamlRouteDiscovery
- Reads routing.yml files provided by modules and creates route collections.
Namespace
Drupal\Core\RoutingCode
protected static function getPriority() : int {
// Runs before PHP Attribute discovery.
return 100;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.