public function ReloadCommand::render in Ajax Add to Cart 8
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- src/
Ajax/ ReloadCommand.php, line 17
Class
- ReloadCommand
- Class ReloadCommand.
Namespace
Drupal\ajax_add_to_cart\AjaxCode
public function render() {
return [
'command' => 'reload',
];
}