CheckProvider::loadCheck
public function 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 登录查看完整内容