W3cubDocs

/Drupal 8

public function ChangedCommand::__construct

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

core/lib/Drupal/Core/Ajax/ChangedCommand.php, line 43

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!ChangedCommand.php/function/ChangedCommand::__construct/8.1.x