public function Ping::execute in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x 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\ActionCode
public function execute() {
return [
'data' => 'pong',
];
}