You are here

public function JobScheduler::execute in DRD Agent 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Agent/Action/JobScheduler.php \Drupal\drd_agent\Agent\Action\JobScheduler::execute()

Execute an action.

Return value

mixed The response of the action as an array which will be encrypted before returned to DRD.

Overrides Base::execute

File

src/Agent/Action/JobScheduler.php, line 15

Class

JobScheduler
Provides a 'JobScheduler' code.

Namespace

Drupal\drd_agent\Agent\Action

Code

public function execute() {
  if (!$this->moduleHandler
    ->moduleExists('job_scheduler')) {
    job_scheduler_rebuild_all();
  }
  return [];
}