W3cubDocs

/Drupal 8

interface 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

File

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

Namespace

Drupal\Core\Access

Members

Name Modifiers Type Description
CheckProviderInterface::addCheckService public function Registers a new AccessCheck by service ID.
CheckProviderInterface::getChecksNeedRequest public function A list of checks that needs the request.
CheckProviderInterface::loadCheck public function Lazy-loads access check services.
CheckProviderInterface::setChecks public function For each route, saves a list of applicable access checks to the route.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Access!CheckProviderInterface.php/interface/CheckProviderInterface/8.1.x