You are here

class ReloadCommand in Flexiform 8

Provides the reload AJAX command.

Hierarchy

Expanded class hierarchy of ReloadCommand

1 file declares its use of ReloadCommand
SubmitButtonAjax.php in src/Plugin/FormEnhancer/SubmitButtonAjax.php

File

src/Ajax/ReloadCommand.php, line 10

Namespace

Drupal\flexiform\Ajax
View source
class ReloadCommand implements CommandInterface {

  /**
   * {@inheritdoc}
   */
  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