public function ChangedCommand::__construct

8.x ChangedCommand.php public ChangedCommand::__construct($selector, $asterisk = '')

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

drupal/core/lib/Drupal/Core/Ajax/ChangedCommand.php, line 48
Definition of Drupal\Core\Ajax\ChangedCommand.

Class

ChangedCommand
An AJAX command for marking HTML elements as changed.

Namespace

Drupal\Core\Ajax

Code

public function __construct($selector, $asterisk = '') {
  $this->selector = $selector;
  $this->asterisk = $asterisk;
}