ChangedCommand::$selector

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Ajax/ChangedCommand.php \Drupal\Core\Ajax\ChangedCommand::selector
  2. 8.9.x core/lib/Drupal/Core/Ajax/ChangedCommand.php \Drupal\Core\Ajax\ChangedCommand::selector
  3. 10 core/lib/Drupal/Core/Ajax/ChangedCommand.php \Drupal\Core\Ajax\ChangedCommand::selector

A CSS selector string.

If the command is a response to a request from an #ajax form element then this value can be NULL.

Type: string

File

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

Class

ChangedCommand
An AJAX command for marking HTML elements as changed.

Namespace

Drupal\Core\Ajax

Code

protected $selector;

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