You are here

interface CommandInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\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

Related topics

7 files declare their use of CommandInterface
EditorDialogSave.php in core/modules/editor/src/Ajax/EditorDialogSave.php
Contains \Drupal\editor\Ajax\EditorDialogSave.
HighlightCommand.php in core/modules/views/src/Ajax/HighlightCommand.php
Contains \Drupal\views\Ajax\HighlightCommand.
ReplaceTitleCommand.php in core/modules/views/src/Ajax/ReplaceTitleCommand.php
Contains \Drupal\views\Ajax\ReplaceTitleCommand.
ScrollTopCommand.php in core/modules/views/src/Ajax/ScrollTopCommand.php
Contains \Drupal\views\Ajax\ScrollTopCommand.
SetSubtreesCommand.php in core/modules/toolbar/src/Ajax/SetSubtreesCommand.php
Contains \Drupal\toolbar\Ajax\SetSubtreesCommand.

... See full list

File

core/lib/Drupal/Core/Ajax/CommandInterface.php, line 18
Contains \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

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