class RouteCompiler

Compiler to generate derived information from a Route necessary for matching.

Hierarchy

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 instance. Overrides RouteCompiler::compile
RouteCompiler::compilePattern private static function
RouteCompiler::computeRegexp private static function Computes the regexp used to match a specific token. It can be static text or a subpattern.
RouteCompiler::findNextSeparator private static function Returns the next static character in the Route pattern that will serve as a separator.
RouteCompiler::getFit public static function Determines the fitness of the provided path.
RouteCompiler::getPathWithoutDefaults public static function Returns the path of the route, without placeholders with a default value.
RouteCompiler::getPatternOutline public static function Returns the pattern outline.
RouteCompiler::REGEX_DELIMITER constant Utility constant to use for regular expressions against the path. Overrides RouteCompiler::REGEX_DELIMITER
RouteCompiler::SEPARATORS constant This string defines the characters that are automatically considered separators in front of optional placeholders (with default and no static text following). Such a single separator can be left out together with the optional placeholder from matching…

© 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!RouteCompiler.php/class/RouteCompiler/8.1.x