You are here

public function VarDumperDebug::hasPermission in VarDumper 8

Same name and namespace in other branches
  1. 7 src/VarDumper/VarDumperDebug.php \Drupal\vardumper\VarDumper\VarDumperDebug::hasPermission()
2 calls to VarDumperDebug::hasPermission()
VarDumperBlock::dump in modules/vardumper_block/src/VarDumper/VarDumperBlock.php
.
VarDumperMessage::dump in src/VarDumper/VarDumperMessage.php
.

File

src/VarDumper/VarDumperDebug.php, line 47

Class

VarDumperDebug

Namespace

Drupal\vardumper\VarDumper

Code

public function hasPermission() {
  return \Drupal::currentUser()
    ->hasPermission('access vardumper information');
}