function CheckProvider::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Access/CheckProvider.php \Drupal\Core\Access\CheckProvider::__construct()

Constructs a CheckProvider object.

Parameters

array $dynamic_requirements_map: An array to map dynamic requirement keys to service IDs.

\Psr\Container\ContainerInterface $container: The check provider service locator.

File

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

Class

CheckProvider
Loads access checkers from the container.

Namespace

Drupal\Core\Access

Code

public function __construct(array $dynamic_requirements_map, ContainerInterface $container) {
    $this->dynamicRequirementMap = $dynamic_requirements_map;
}

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