public function ActionLinkFlashCommand::render in Flag 8.4
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- src/
Ajax/ ActionLinkFlashCommand.php, line 46
Class
- ActionLinkFlashCommand
- Flash a message as an action link is updated.
Namespace
Drupal\flag\AjaxCode
public function render() {
return [
'command' => 'actionLinkFlash',
'selector' => $this->selector,
'message' => $this->message,
];
}