public function CompiledRoute::__construct

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::__construct()
  2. 9.x drupal/core/vendor/symfony/routing/Symfony/Component/Routing/CompiledRoute.php \Symfony\Component\Routing\CompiledRoute::__construct()

Constructor.

Parameters

string $staticPrefix The static prefix of the compiled route:

string $regex The regular expression to use to match this route:

array $tokens An array of tokens to use to generate URL for this route:

array $variables An array of variables:

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/CompiledRoute.php, line 34

Class

CompiledRoute
CompiledRoutes are returned by the RouteCompiler class.

Namespace

Symfony\Component\Routing

Code

public function __construct($staticPrefix, $regex, array $tokens, array $variables) {
  $this->staticPrefix = $staticPrefix;
  $this->regex = $regex;
  $this->tokens = $tokens;
  $this->variables = $variables;
}