3 namespace Drupal\views\Ajax;
5 use Drupal\Core\Ajax\CommandInterface;
8 * Provides an AJAX command for highlighting a certain new piece of html.
10 * This command is implemented in Drupal.AjaxCommands.prototype.viewsHighlight.
12 class HighlightCommand implements CommandInterface {
15 * A CSS selector string.
22 * Constructs a \Drupal\views\Ajax\HighlightCommand object.
24 * @param string $selector
27 public function __construct($selector) {
28 $this->selector = $selector;
34 public function render() {
36 'command' => 'viewsHighlight',
37 'selector' => $this->selector,