class ReloadCommand in Ajax Add to Cart 8
Class ReloadCommand.
@package Drupal\ajax_add_to_cart\Ajax
Hierarchy
- class \Drupal\ajax_add_to_cart\Ajax\ReloadCommand implements CommandInterface
Expanded class hierarchy of ReloadCommand
1 file declares its use of ReloadCommand
- AjaxCartHelper.php in src/
Helper/ AjaxCartHelper.php
File
- src/
Ajax/ ReloadCommand.php, line 12
Namespace
Drupal\ajax_add_to_cart\AjaxView source
class ReloadCommand implements CommandInterface {
/**
* Return an array to be run through json_encode and sent to the client.
*/
public function render() {
return [
'command' => 'reload',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ReloadCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |