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()

Constructs a new CompiledRoute object.

Parameters

\Symfony\Component\Routing\Route $route: A original Route instance.

int $fit: The fitness of the route.

string $fit: The pattern outline for this route.

int $num_parts: The number of parts in the path.

string $regex: The regular expression to match placeholders out of this path.

File

drupal/core/lib/Drupal/Core/Routing/CompiledRoute.php, line 66
Definition of Drupal\Core\Routing\CompiledRoute.

Class

CompiledRoute
Description of CompiledRoute

Namespace

Drupal\Core\Routing

Code

public function __construct(Route $route, $fit, $pattern_outline, $num_parts, $regex) {
  $this->route = $route;
  $this->fit = $fit;
  $this->patternOutline = $pattern_outline;
  $this->numParts = $num_parts;
  $this->regex = $regex;
}