Constructs a BaseCommand object.
Parameters
string $data:
The data to pass on to the client side.
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;
}