You are here

public function ajaxCommentsScrollToElementCommand::render in AJAX Comments 8

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

Overrides CommandInterface::render

File

src/Ajax/ajaxCommentsScrollToElementCommand.php, line 39
Contains \Drupal\ajax_comments\Ajax\ajaxCommentsScrollToElementCommand.

Class

ajaxCommentsScrollToElementCommand
AJAX command for calling the ajaxCommentsScrollToElement() method.

Namespace

Drupal\ajax_comments\Ajax

Code

public function render() {
  return [
    'command' => 'ajaxCommentsScrollToElement',
    'selector' => $this->selector,
  ];
}