You are here

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

Same name and namespace in other branches
  1. 8.3 src/Agent/Action/Ping.php \Drupal\drd_agent\Agent\Action\Ping::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/Ping.php, line 13

Class

Ping
Provides a 'Ping' code.

Namespace

Drupal\drd_agent\Agent\Action

Code

public function execute() {
  return [
    'data' => 'pong',
  ];
}