ChangedCommand
class ChangedCommand implements CommandInterface (View source)
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.
Properties
| protected string | $selector | A CSS selector string. |
|
| protected string | $asterisk | An optional CSS selector for elements to which asterisks will be appended. |
Methods
__construct(string $selector, string $asterisk = '')
Constructs a ChangedCommand object.
render()
Implements Drupal\Core\Ajax\CommandInterface:render().
Details
__construct(string $selector, string $asterisk = '')
Constructs a ChangedCommand object.
render()
Implements Drupal\Core\Ajax\CommandInterface:render().