Implements \Drupal\Core\Ajax\CommandInterface::render().
Overrides CommandInterface::render
File
- drupal/core/modules/views/lib/Drupal/views/Ajax/ScrollTopCommand.php, line 39
- Contains \Drupal\views\Ajax\ScrollTopCommand.
Class
- ScrollTopCommand
- Provides an AJAX command for scolling to the top of an element.
Namespace
Drupal\views\Ajax
Code
public function render() {
return array(
'command' => 'viewsScrollTop',
'selector' => $this->selector,
);
}