You are here

public function VLMAppendCommand::render in Views Load More 2.x

Same name and namespace in other branches
  1. 8 src/Ajax/VLMAppendCommand.php \Drupal\views_load_more\Ajax\VLMAppendCommand::render()

Implements \Drupal\Core\Ajax\CommandInterface::render().

Overrides CommandInterface::render

File

src/Ajax/VLMAppendCommand.php, line 69

Class

VLMAppendCommand
Provides an AJAX command for appending new rows in a paged AJAX response to the rows on the page.

Namespace

Drupal\views_load_more\Ajax

Code

public function render() {
  return array(
    'command' => 'viewsLoadMoreAppend',
    'data' => $this
      ->getRenderedContent(),
    'options' => $this->options,
  );
}