public function InfiniteScroll::defineOptions in Views Infinite Scroll 8
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides SqlBase::defineOptions
File
- src/
Plugin/ views/ pager/ InfiniteScroll.php, line 52
Class
- InfiniteScroll
- Views pager plugin to handle infinite scrolling.
Namespace
Drupal\views_infinite_scroll\Plugin\views\pagerCode
public function defineOptions() {
$options = parent::defineOptions();
$options['views_infinite_scroll'] = [
'contains' => [
'button_text' => [
'default' => $this
->t('Load More'),
],
'automatically_load_content' => [
'default' => FALSE,
],
'initially_load_all_pages' => [
'default' => FALSE,
],
],
];
return $options;
}