You are here

protected function CheckProvider::loadDynamicRequirementMap in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Access/CheckProvider.php \Drupal\Core\Access\CheckProvider::loadDynamicRequirementMap()

Compiles a mapping of requirement keys to access checker service IDs.

1 call to CheckProvider::loadDynamicRequirementMap()
CheckProvider::setChecks in core/lib/Drupal/Core/Access/CheckProvider.php
For each route, saves a list of applicable access checks to the route.

File

core/lib/Drupal/Core/Access/CheckProvider.php, line 151

Class

CheckProvider
Loads access checkers from the container.

Namespace

Drupal\Core\Access

Code

protected function loadDynamicRequirementMap() {
  if (!isset($this->dynamicRequirementMap)) {
    $this->dynamicRequirementMap = $this->container
      ->getParameter('dynamic_access_check_services');
  }
}