function CheckProviderInterface::setChecks

Same name in other branches
  1. 9 core/lib/Drupal/Core/Access/CheckProviderInterface.php \Drupal\Core\Access\CheckProviderInterface::setChecks()
  2. 8.9.x core/lib/Drupal/Core/Access/CheckProviderInterface.php \Drupal\Core\Access\CheckProviderInterface::setChecks()
  3. 11.x core/lib/Drupal/Core/Access/CheckProviderInterface.php \Drupal\Core\Access\CheckProviderInterface::setChecks()

For each route, saves a list of applicable access checks to the route.

Parameters

\Symfony\Component\Routing\RouteCollection $routes: A collection of routes to apply checks to.

File

core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 24

Class

CheckProviderInterface
Provides the available access checkers by service IDs.

Namespace

Drupal\Core\Access

Code

public function setChecks(RouteCollection $routes);

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