You are here

private function Trigger::isValidUser in Build Hooks 8

Same name and namespace in other branches
  1. 8.2 src/Trigger.php \Drupal\build_hooks\Trigger::isValidUser()
  2. 3.x src/Trigger.php \Drupal\build_hooks\Trigger::isValidUser()
2 calls to Trigger::isValidUser()
Trigger::execute in src/Trigger.php
return void
Trigger::showMenu in src/Trigger.php
return void

File

src/Trigger.php, line 143

Class

Trigger
Class Trigger.

Namespace

Drupal\build_hooks

Code

private function isValidUser() {
  return $this->currentUser
    ->hasPermission('access admin');
}