protected function AccessControlHandler::currentUser in Block Region Permissions 8
Returns the current user.
Return value
\Drupal\Core\Session\AccountInterface The current user.
1 call to AccessControlHandler::currentUser()
- AccessControlHandler::blockFormAccess in src/
AccessControlHandler.php - Access check for the block edit and delete forms.
File
- src/
AccessControlHandler.php, line 52
Class
- AccessControlHandler
- Controller for the block region permissions.
Namespace
Drupal\block_region_permissionsCode
protected function currentUser() {
if (!$this->currentUser) {
$this->currentUser = $this
->container()
->get('current_user');
}
return $this->currentUser;
}