public function ShowMore::render in Views Show More 8
Render overwrite.
Overrides PagerPluginBase::render
File
- src/
Plugin/ views/ pager/ ShowMore.php, line 292
Class
- ShowMore
- The plugin to handle show more pager.
Namespace
Drupal\views_show_more\Plugin\views\pagerCode
public function render($input) {
$output = [
'#theme' => $this
->themeFunctions(),
'#element' => $this->options['id'],
'#parameters' => $input,
'#options' => $this->options,
];
if ($this->view->display_handler
->usesAJAX()) {
$output['#attached'] = [
'library' => [
'views_show_more/views_show_more',
],
];
}
return $output;
}