function 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\Routing

Code

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.