function CheckProvider::loadDynamicRequirementMap

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

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

File

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

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');
    }
}

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