DataCommand::$value

Same name in other branches
  1. 9 core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::value
  2. 10 core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::value
  3. 11.x 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;

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