public CheckProviderInterface::loadCheck($service_id)
Lazy-loads access check services.
string $service_id: The service id of the access check service to load.
callable A callable access check.
\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.
public function loadCheck($service_id);
© 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/function/CheckProviderInterface::loadCheck/8.1.x