You are here

public function Trigger::showMenu in Build Hooks 8

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

return void

Overrides TriggerInterface::showMenu

File

src/Trigger.php, line 133

Class

Trigger
Class Trigger.

Namespace

Drupal\build_hooks

Code

public function showMenu() {
  if (!$this
    ->isValidUser()) {
    return FALSE;
  }
  return (bool) $this->configFactory
    ->get('build_hooks.settings')
    ->get('triggers.menu');
}