You are here

public function EntitySavedCommand::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/src/Ajax/EntitySavedCommand.php \Drupal\quickedit\Ajax\EntitySavedCommand::__construct()
  2. 10 core/modules/quickedit/src/Ajax/EntitySavedCommand.php \Drupal\quickedit\Ajax\EntitySavedCommand::__construct()

Constructs a EntitySaveCommand object.

Parameters

string $data: The data to pass on to the client side.

Overrides BaseCommand::__construct

File

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

Class

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

Namespace

Drupal\quickedit\Ajax

Code

public function __construct($data) {
  parent::__construct('quickeditEntitySaved', $data);
}