You are here

class ReloadCommand in Ajax Add to Cart 8

Class ReloadCommand.

@package Drupal\ajax_add_to_cart\Ajax

Hierarchy

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\Ajax
View 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

Namesort descending Modifiers Type Description Overrides
ReloadCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render