private function Trigger::isValidUser in Build Hooks 3.x
Same name and namespace in other branches
- 8.2 src/Trigger.php \Drupal\build_hooks\Trigger::isValidUser()
- 8 src/Trigger.php \Drupal\build_hooks\Trigger::isValidUser()
Checks if the user has the permission to trigger deployments.
Return value
bool Boolean value.
1 call to Trigger::isValidUser()
- Trigger::showMenu in src/
Trigger.php - Checks if we should show the environments in the upper menu.
File
- src/
Trigger.php, line 183
Class
- Trigger
- Defines a service for triggering deployments.
Namespace
Drupal\build_hooksCode
private function isValidUser() {
return $this->currentUser
->hasPermission('trigger deployments');
}