Registers a new AccessCheck by service ID.
Parameters
string $service_id:
The ID of the service in the Container that provides a check.
File
- drupal/core/lib/Drupal/Core/Access/AccessManager.php, line 42
- Contains Drupal\Core\Access\AccessManager.
Class
- AccessManager
- Attaches access check services to routes and runs them on request.
Namespace
Drupal\Core\Access
Code
public function addCheckService($service_id) {
$this->checkIds[] = $service_id;
}