On this page
class ChangedCommand
An AJAX command for marking HTML elements as changed.
This command instructs the client to mark each of the elements matched by the given selector as 'ajax-changed'.
This command is implemented by Drupal.AjaxCommands.prototype.changed() defined in misc/ajax.js.
Hierarchy
- class \Drupal\Core\Ajax\ChangedCommand implements CommandInterface
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/ChangedCommand.php, line 16
Namespace
Drupal\Core\AjaxMembers
Name | Modifiers | Type | Description |
---|---|---|---|
ChangedCommand::$asterisk | protected | property | An optional CSS selector for elements to which asterisks will be appended. |
ChangedCommand::$selector | protected | property | A CSS selector string. |
ChangedCommand::render | public | function | Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render |
ChangedCommand::__construct | public | function | Constructs a ChangedCommand object. |
© 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/class/ChangedCommand/8.1.x