CheckProviderInterface::loadCheck

public CheckProviderInterface::loadCheck($service_id) Lazy-loads access check services. Parameters string $service_id: The service id of the access check service to load. Return value callable A callable access check. Throws \InvalidArgumentException Thrown when the service hasn't been registered in addCheckService(). \Drupal\Core\Access\AccessException Thrown when the service doesn't implement the required interface. File core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 56 Cl

CheckProviderInterface::getChecksNeedRequest

public CheckProviderInterface::getChecksNeedRequest() A list of checks that needs the request. Return value array File core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 63 Class CheckProviderInterface Provides the available access checkers by service IDs. Namespace Drupal\Core\Access Code public function getChecksNeedRequest();

CheckProviderInterface::addCheckService

public CheckProviderInterface::addCheckService($service_id, $service_method, array $applies_checks = array(), $needs_incoming_request = FALSE) Registers a new AccessCheck by service ID. Parameters string $service_id: The ID of the service in the Container that provides a check. string $service_method: The method to invoke on the service object for performing the check. array $applies_checks: (optional) An array of route requirement keys the checker service applies to. bool $needs_incoming_requ

CheckProviderInterface

Provides the available access checkers by service IDs. Access checker services are added by ::addCheckService calls and are loaded by ::loadCheck. The checker provider service and the actual checking is separated in order to not require the full access manager on route build time. Hierarchy interface \Drupal\Core\Access\CheckProviderInterface File core/lib/Drupal/Core/Access/CheckProviderInterface.php, line 16 Namespace Drupal\Core\Access Members Name Modifiers Type Description

CheckProvider::setChecks

public CheckProvider::setChecks(RouteCollection $routes) 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. Overrides CheckProviderInterface::setChecks File core/lib/Drupal/Core/Access/CheckProvider.php, line 82 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code public function setChecks(RouteCollection $routes) {

CheckProvider::loadDynamicRequirementMap

protected CheckProvider::loadDynamicRequirementMap() Compiles a mapping of requirement keys to access checker service IDs. File core/lib/Drupal/Core/Access/CheckProvider.php, line 148 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected function loadDynamicRequirementMap() { if (isset($this->dynamicRequirementMap)) { return; } // Set them here, so we can use the isset() check above. $this->dynamicRequirementMap = a

CheckProvider::loadCheck

public CheckProvider::loadCheck($service_id) Lazy-loads access check services. Parameters string $service_id: The service id of the access check service to load. Return value callable A callable access check. Throws \InvalidArgumentException Thrown when the service hasn't been registered in addCheckService(). \Drupal\Core\Access\AccessException Thrown when the service doesn't implement the required interface. Overrides CheckProviderInterface::loadCheck File core/lib/Drupal/Core/Access/CheckP

CheckProvider::getChecksNeedRequest

public CheckProvider::getChecksNeedRequest() A list of checks that needs the request. Return value array Overrides CheckProviderInterface::getChecksNeedRequest File core/lib/Drupal/Core/Access/CheckProvider.php, line 75 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code public function getChecksNeedRequest() { return $this->checksNeedsRequest; }

CheckProvider::applies

protected CheckProvider::applies(Route $route) Determine which registered access checks apply to a route. Parameters \Symfony\Component\Routing\Route $route: The route to get list of access checks for. Return value array An array of service ids for the access checks that apply to passed route. File core/lib/Drupal/Core/Access/CheckProvider.php, line 124 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected function applies(Route $ro

CheckProvider::addCheckService

public CheckProvider::addCheckService($service_id, $service_method, array $applies_checks = array(), $needs_incoming_request = FALSE) Registers a new AccessCheck by service ID. Parameters string $service_id: The ID of the service in the Container that provides a check. string $service_method: The method to invoke on the service object for performing the check. array $applies_checks: (optional) An array of route requirement keys the checker service applies to. bool $needs_incoming_request: (opt