You are here

class EntitySavedCommand in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/quickedit/src/Ajax/EntitySavedCommand.php \Drupal\quickedit\Ajax\EntitySavedCommand

AJAX command to indicate the entity was loaded from PrivateTempStore and saved into the database.

Hierarchy

Expanded class hierarchy of EntitySavedCommand

1 file declares its use of EntitySavedCommand
QuickEditController.php in core/modules/quickedit/src/QuickEditController.php

File

core/modules/quickedit/src/Ajax/EntitySavedCommand.php, line 11

Namespace

Drupal\quickedit\Ajax
View source
class EntitySavedCommand extends BaseCommand {

  /**
   * Constructs an EntitySaveCommand object.
   *
   * @param string $data
   *   The data to pass on to the client side.
   */
  public function __construct($data) {
    parent::__construct('quickeditEntitySaved', $data);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseCommand::$command protected property The name of the command.
BaseCommand::$data protected property The data to pass on to the client side.
BaseCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render 1
EntitySavedCommand::__construct public function Constructs an EntitySaveCommand object. Overrides BaseCommand::__construct