function ChangedCommand::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Ajax/ChangedCommand.php \Drupal\Core\Ajax\ChangedCommand::__construct()
- 8.9.x core/lib/Drupal/Core/Ajax/ChangedCommand.php \Drupal\Core\Ajax\ChangedCommand::__construct()
- 11.x core/lib/Drupal/Core/Ajax/ChangedCommand.php \Drupal\Core\Ajax\ChangedCommand::__construct()
Constructs a ChangedCommand object.
Parameters
string $selector: CSS selector for elements to be marked as changed.
string $asterisk: CSS selector for elements to which an asterisk will be appended.
File
-
core/
lib/ Drupal/ Core/ Ajax/ ChangedCommand.php, line 43
Class
- ChangedCommand
- An AJAX command for marking HTML elements as changed.
Namespace
Drupal\Core\AjaxCode
public function __construct($selector, $asterisk = '') {
$this->selector = $selector;
$this->asterisk = $asterisk;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.