You are here

public function Trigger::executeCron in Build Hooks 8

return void

Overrides TriggerInterface::executeCron

File

src/Trigger.php, line 113

Class

Trigger
Class Trigger.

Namespace

Drupal\build_hooks

Code

public function executeCron() {
  $execute = (bool) $this->configFactory
    ->get('build_hooks.settings')
    ->get('triggers.cron');
  if ($execute) {
    $this
      ->execute();
  }
}