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

Class

CheckProviderInterface
Provides the available access checkers by service IDs.

Namespace

Drupal\Core\Access

Code

public function loadCheck($service_id);
doc_Drupal
2016-10-29 08:49:59
Comments
Leave a Comment

Please login to continue.