public function DataCommand::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Ajax/DataCommand.php \Drupal\Core\Ajax\DataCommand::__construct()
Constructs a DataCommand object.
Parameters
string $selector: A CSS selector for the elements to which the data will be attached.
string $name: The key of the data to be attached to elements matched by the selector.
type $value: The value of the data to be attached to elements matched by the selector.
File
- core/
lib/ Drupal/ Core/ Ajax/ DataCommand.php, line 59 - Contains \Drupal\Core\Ajax\DataCommand.
Class
- DataCommand
- An AJAX command for implementing jQuery's data() method.
Namespace
Drupal\Core\AjaxCode
public function __construct($selector, $name, $value) {
$this->selector = $selector;
$this->name = $name;
$this->value = $value;
}