function CompiledRoute::getFit

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::getFit()
  2. 10 core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::getFit()
  3. 11.x core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::getFit()

Returns the fit of this route.

See RouteCompiler for a definition of how the fit is calculated.

Return value

int The fit of the route.

File

core/lib/Drupal/Core/Routing/CompiledRoute.php, line 83

Class

CompiledRoute
A compiled route contains derived information from a route object.

Namespace

Drupal\Core\Routing

Code

public function getFit() {
    return $this->fit;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.