public function BaseCommand::__construct

Constructs a BaseCommand object.

Parameters

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

4 calls to BaseCommand::__construct()
FieldFormCommand::__construct in drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormCommand.php
Constructs a FieldFormCommand object.
FieldFormSavedCommand::__construct in drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormSavedCommand.php
Constructs a FieldFormSavedCommand object.
FieldFormValidationErrorsCommand::__construct in drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormValidationErrorsCommand.php
Constructs a FieldFormValidationErrorsCommand object.
GetUntransformedTextCommand::__construct in drupal/core/modules/editor/lib/Drupal/editor/Ajax/GetUntransformedTextCommand.php
Constructs a GetUntransformedTextCommand object.
4 methods override BaseCommand::__construct()
FieldFormCommand::__construct in drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormCommand.php
Constructs a FieldFormCommand object.
FieldFormSavedCommand::__construct in drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormSavedCommand.php
Constructs a FieldFormSavedCommand object.
FieldFormValidationErrorsCommand::__construct in drupal/core/modules/edit/lib/Drupal/edit/Ajax/FieldFormValidationErrorsCommand.php
Constructs a FieldFormValidationErrorsCommand object.
GetUntransformedTextCommand::__construct in drupal/core/modules/editor/lib/Drupal/editor/Ajax/GetUntransformedTextCommand.php
Constructs a GetUntransformedTextCommand object.

File

drupal/core/modules/edit/lib/Drupal/edit/Ajax/BaseCommand.php, line 37
Contains \Drupal\edit\Ajax\BaseCommand.

Class

BaseCommand
Base AJAX command that only exists simplify Edit's actual AJAX commands.

Namespace

Drupal\edit\Ajax

Code

public function __construct($command, $data) {
  $this->command = $command;
  $this->data = $data;
}