interface CommandInterface

AJAX command interface.

All AJAX commands passed to AjaxResponse objects should implement these methods.

Hierarchy

Expanded class hierarchy of CommandInterface

All classes that implement CommandInterface

12 files declare their use of CommandInterface
AddCssCommand.php in drupal/core/lib/Drupal/Core/Ajax/AddCssCommand.php
Definition of Drupal\Core\Ajax\AddCssCommand.
AlertCommand.php in drupal/core/lib/Drupal/Core/Ajax/AlertCommand.php
Definition of Drupal\Core\Ajax\AlertCommand.
ChangedCommand.php in drupal/core/lib/Drupal/Core/Ajax/ChangedCommand.php
Definition of Drupal\Core\Ajax\ChangedCommand.
CssCommand.php in drupal/core/lib/Drupal/Core/Ajax/CssCommand.php
Definition of Drupal\Core\Ajax\CssCommand.
DataCommand.php in drupal/core/lib/Drupal/Core/Ajax/DataCommand.php
Definition of Drupal\Core\Ajax\DataCommand.

... See full list

File

drupal/core/lib/Drupal/Core/Ajax/CommandInterface.php, line 16
Definition of Drupal\Core\Ajax\CommandInterface.

Namespace

Drupal\Core\Ajax
View source
interface CommandInterface {

  /**
   * Return an array to be run through json_encode and sent to the client.
   */
  public function render();
}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
CommandInterface::render public function Return an array to be run through json_encode and sent to the client.