public function Cron::execute in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 src/Agent/Action/Cron.php \Drupal\drd_agent\Agent\Action\Cron::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/ Cron.php, line 15
Class
- Cron
- Provides a 'Cron' code.
Namespace
Drupal\drd_agent\Agent\ActionCode
public function execute() {
/** @noinspection NullPointerExceptionInspection */
$this->container
->get('cron')
->run();
return [];
}