You are here

class AjaxReloadCommand in Workbench Moderation Actions 8

Tells the client to perform an AJAX reload.

Hierarchy

Expanded class hierarchy of AjaxReloadCommand

1 file declares its use of AjaxReloadCommand
StateChange.php in src/Controller/StateChange.php

File

src/AjaxReloadCommand.php, line 10

Namespace

Drupal\workbench_moderation_actions
View source
class AjaxReloadCommand 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
AjaxReloadCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render