Returns the requirement for the given key.
Parameters
string $key The key:
Return value
string The regex
File
- drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php, line 328
Class
- Route
- A Route describes a route and its parameters.
Namespace
Symfony\Component\Routing
Code
public function getRequirement($key) {
return isset($this->requirements[$key]) ? $this->requirements[$key] : null;
}