You are here

public function Trigger::showMenu in Build Hooks 3.x

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

Checks if we should show the environments in the upper menu.

Return value

bool Boolean value.

Overrides TriggerInterface::showMenu

File

src/Trigger.php, line 170

Class

Trigger
Defines a service for triggering deployments.

Namespace

Drupal\build_hooks

Code

public function showMenu() {
  if (!$this
    ->isValidUser()) {
    return FALSE;
  }
  return TRUE;
}