private function AccessControlHandler::container in Block Region Permissions 8
Returns the service container.
This method is marked private to prevent sub-classes from retrieving services from the container through it. Instead, \Drupal\Core\DependencyInjection\ContainerInjectionInterface should be used for injecting services.
Return value
\Symfony\Component\DependencyInjection\ContainerInterface The service container.
File
- src/
AccessControlHandler.php, line 42
Class
- AccessControlHandler
- Controller for the block region permissions.
Namespace
Drupal\block_region_permissionsCode
private function container() {
return \Drupal::getContainer();
}