Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::value
  2. 9 core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::value

The value of the data to be attached to elements matched by the selector.

The data is not limited to strings; it can be any format.

Type: mixed

File

core/lib/Drupal/Core/Ajax/DataCommand.php, line 42

Class

DataCommand
An AJAX command for implementing jQuery's data() method.

Namespace

Drupal\Core\Ajax

Code

protected $value;