class HighlightCommand implements CommandInterface (View source)

Provides an AJAX command for highlighting a certain new piece of html.

This command is implemented in Drupal.AjaxCommands.prototype.viewsHighlight.

Properties

protected string $selector

A CSS selector string.

Methods

__construct(string $selector)

Constructs a \Drupal\views\Ajax\HighlightCommand object.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(string $selector)

Constructs a \Drupal\views\Ajax\HighlightCommand object.

Parameters

string $selector

A CSS selector.

render()

Return an array to be run through json_encode and sent to the client.