HighlightCommand.php in Drupal 9
File
core/modules/views/src/Ajax/HighlightCommand.php
View source
<?php
namespace Drupal\views\Ajax;
use Drupal\Core\Ajax\CommandInterface;
class HighlightCommand implements CommandInterface {
protected $selector;
public function __construct($selector) {
$this->selector = $selector;
}
public function render() {
return [
'command' => 'viewsHighlight',
'selector' => $this->selector,
];
}
}
Classes
Name |
Description |
HighlightCommand |
Provides an AJAX command for highlighting a certain new piece of html. |