You are here

function LoadMore::render in Views Load More 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/pager/LoadMore.php \Drupal\views_load_more\Plugin\views\pager\LoadMore::render()

Return the renderable array of the pager.

Called during the view render process.

Parameters

$input: Any extra GET parameters that should be retained, such as exposed input.

Overrides Full::render

File

src/Plugin/views/pager/LoadMore.php, line 166

Class

LoadMore
The plugin to handle full pager.

Namespace

Drupal\views_load_more\Plugin\views\pager

Code

function render($parameters) {
  $output = array(
    '#theme' => $this
      ->themeFunctions(),
    '#element' => $this->options['id'],
    '#parameters' => $parameters,
    '#more_button_text' => $this->options['more_button_text'],
    '#end_text' => $this->options['end_text'],
  );
  return $output;
}