function CompiledRoute::getRequirements
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::getRequirements()
Returns the requirements.
Return value
array The requirements.
Deprecated
in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.
See also
https://www.drupal.org/node/3159706
File
-
core/
lib/ Drupal/ Core/ Routing/ CompiledRoute.php, line 156
Class
- CompiledRoute
- A compiled route contains derived information from a route object.
Namespace
Drupal\Core\RoutingCode
public function getRequirements() {
@trigger_error(__METHOD__ . '() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706', E_USER_DEPRECATED);
return $this->route
->getRequirements();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.