ReloadCommand.php in Ajax Add to Cart 8
Namespace
Drupal\ajax_add_to_cart\AjaxFile
src/Ajax/ReloadCommand.phpView source
<?php
namespace Drupal\ajax_add_to_cart\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* Class ReloadCommand.
*
* @package Drupal\ajax_add_to_cart\Ajax
*/
class ReloadCommand implements CommandInterface {
/**
* Return an array to be run through json_encode and sent to the client.
*/
public function render() {
return [
'command' => 'reload',
];
}
}
Classes
Name![]() |
Description |
---|---|
ReloadCommand | Class ReloadCommand. |