BaseCommand::$data

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/BaseCommand.php \Drupal\Core\Ajax\BaseCommand::data
  2. 8.9.x core/lib/Drupal/Core/Ajax/BaseCommand.php \Drupal\Core\Ajax\BaseCommand::data
  3. 11.x core/lib/Drupal/Core/Ajax/BaseCommand.php \Drupal\Core\Ajax\BaseCommand::data

The data to pass on to the client side.

Type: string

File

core/lib/Drupal/Core/Ajax/BaseCommand.php, line 22

Class

BaseCommand
Base command that only exists to simplify AJAX commands.

Namespace

Drupal\Core\Ajax

Code

protected $data;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.