function CompiledRoute::getRequirements

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::getRequirements()

Returns the requirements.

Return value

array The requirements.

File

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

Class

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

Namespace

Drupal\Core\Routing

Code

public function getRequirements() {
    return $this->route
        ->getRequirements();
}

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