public function Route::setRequirements

Same name in this branch
  1. 9.x drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php \Symfony\Component\Routing\Route::setRequirements()
  2. 9.x drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Annotation/Route.php \Symfony\Component\Routing\Annotation\Route::setRequirements()

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Annotation/Route.php, line 74

Class

Route
Annotation class for @Route().

Namespace

Symfony\Component\Routing\Annotation

Code

public function setRequirements($requirements) {
  $this->requirements = $requirements;
}