You are here

ReloadCommand.php in Ajax Add to Cart 8

File

src/Ajax/ReloadCommand.php
View 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

Namesort descending Description
ReloadCommand Class ReloadCommand.