public function JobScheduler::execute in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x 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\ActionCode
public function execute() {
if (!$this->moduleHandler
->moduleExists('job_scheduler')) {
job_scheduler_rebuild_all();
}
return [];
}