You are here

public function Cron::execute in DRD Agent 8.3

Same name and namespace in other branches
  1. 4.0.x 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\Action

Code

public function execute() {

  /** @noinspection NullPointerExceptionInspection */
  $this->container
    ->get('cron')
    ->run();
  return [];
}