You are here

protected function VarDumperBlock::blockAccess in VarDumper 8

.

Overrides BlockPluginTrait::blockAccess

File

modules/vardumper_block/src/Plugin/Block/VarDumperBlock.php, line 74

Class

VarDumperBlock
Provides a 'Vardumper' block.

Namespace

Drupal\vardumper_block\Plugin\Block

Code

protected function blockAccess(AccountInterface $account) {
  if ($account
    ->hasPermission('access vardumper information')) {
    return AccessResult::allowed();
  }
  return AccessResult::forbidden();
}