public function AccessControlHandler::blockContentTypeAdministerAccess in Block Content Permissions 8
Access check for the block content type administer pages and forms.
Return value
\Drupal\Core\Access\AccessResult An access result.
File
- src/
AccessControlHandler.php, line 102
Class
- AccessControlHandler
- Controller for the block content permissions.
Namespace
Drupal\block_content_permissionsCode
public function blockContentTypeAdministerAccess() {
$account = $this
->currentUser();
return AccessResult::allowedIfHasPermission($account, 'administer block content types');
}