RouteCompiler::REGEX_DELIMITER

Utility constant to use for regular expressions against the path. Overrides RouteCompiler::REGEX_DELIMITER File core/lib/Drupal/Core/Routing/RouteCompiler.php, line 17 Class RouteCompiler Compiler to generate derived information from a Route necessary for matching. Namespace Drupal\Core\Routing Code const REGEX_DELIMITER = '#';

RouteCompiler::getPatternOutline

public static RouteCompiler::getPatternOutline($path) Returns the pattern outline. The pattern outline is the path pattern but normalized so that all placeholders are equal strings and default values are removed. Parameters string $path: The path for which we want the normalized outline. Return value string The path pattern outline. File core/lib/Drupal/Core/Routing/RouteCompiler.php, line 73 Class RouteCompiler Compiler to generate derived information from a Route necessary for matching

RouteCompiler::getPathWithoutDefaults

public static RouteCompiler::getPathWithoutDefaults(Route $route) Returns the path of the route, without placeholders with a default value. When computing the path outline and fit, we want to skip default-value placeholders. If we didn't, the path would never match. Note that this only works for placeholders at the end of the path. Infix placeholders with default values don't make sense anyway, so that should not be a problem. Parameters \Symfony\Component\Routing\Route $route: The route to ha

RouteCompiler::getFit

public static RouteCompiler::getFit($path) Determines the fitness of the provided path. Parameters string $path: The path whose fitness we want. Return value int The fitness of the path, as an integer. File core/lib/Drupal/Core/Routing/RouteCompiler.php, line 86 Class RouteCompiler Compiler to generate derived information from a Route necessary for matching. Namespace Drupal\Core\Routing Code public static function getFit($path) { $parts = explode('/', trim($path, '/')); $number_

RouteCompiler::compile

public static RouteCompiler::compile(Route $route) Compiles the current route instance. Because so much of the parent class is private, we need to call the parent class's compile() method and then dissect its return value to build our new compiled object. If upstream gets refactored so we can subclass more easily then this may not be necessary. Parameters \Symfony\Component\Routing\Route $route: A Route instance. Return value \Drupal\Core\Routing\CompiledRoute A CompiledRoute instance. Overri

RouteCompiler

Compiler to generate derived information from a Route necessary for matching. Hierarchy class \Symfony\Component\Routing\RouteCompiler implements \Symfony\Component\Routing\RouteCompilerInterface class \Drupal\Core\Routing\RouteCompiler implements RouteCompilerInterface File core/lib/Drupal/Core/Routing/RouteCompiler.php, line 12 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RouteCompiler::compile public static function Compiles the current route

RouteBuildEvent::__construct

public RouteBuildEvent::__construct(RouteCollection $route_collection) Constructs a RouteBuildEvent object. Parameters \Symfony\Component\Routing\RouteCollection $route_collection: The route collection. File core/lib/Drupal/Core/Routing/RouteBuildEvent.php, line 26 Class RouteBuildEvent Represents route building information as event. Namespace Drupal\Core\Routing Code public function __construct(RouteCollection $route_collection) { $this->routeCollection = $route_collection; }

RouteBuildEvent::getRouteCollection

public RouteBuildEvent::getRouteCollection() Gets the route collection. File core/lib/Drupal/Core/Routing/RouteBuildEvent.php, line 33 Class RouteBuildEvent Represents route building information as event. Namespace Drupal\Core\Routing Code public function getRouteCollection() { return $this->routeCollection; }

RouteBuildEvent::$routeCollection

The route collection. Type: \Symfony\Component\Routing\RouteCollection File core/lib/Drupal/Core/Routing/RouteBuildEvent.php, line 18 Class RouteBuildEvent Represents route building information as event. Namespace Drupal\Core\Routing Code protected $routeCollection;

RouteBuildEvent

Represents route building information as event. Hierarchy class \Symfony\Component\EventDispatcher\Eventclass \Drupal\Core\Routing\RouteBuildEvent File core/lib/Drupal/Core/Routing/RouteBuildEvent.php, line 11 Namespace Drupal\Core\Routing Members Name Modifiers Type Description Event::$dispatcher private property Event::$name private property Event::$propagationStopped private property Event::getDispatcher Deprecated public function Returns the