You are here

private function Trigger::processMessage in Build Hooks 8

1 call to Trigger::processMessage()
Trigger::execute in src/Trigger.php
return void

File

src/Trigger.php, line 147

Class

Trigger
Class Trigger.

Namespace

Drupal\build_hooks

Code

private function processMessage($message, $args = []) {
  $show = (bool) $this->configFactory
    ->get('build_hooks.settings')
    ->get('messages.show');
  if (!$show) {
    return;
  }
  $this->messenger
    ->addMessage($this->stringTranslation
    ->translate($message, $args));
}