public static function create(ContainerInterface
$container, array
$configuration,
$plugin_id,
$plugin_definition) { return new static( $configuration,
$plugin_id,
$plugin_definition,
$container->
get('pager.manager'
),
$container->
get('pager.parameters'
) );
} protected function defineOptions() { $options = parent::
defineOptions();
$options['items_per_page'
] =
['default' => 10
];
$options['offset'
] =
['default' => 0
];
$options['id'
] =
['default' => 0
];
$options['total_pages'
] =
['default' => ''
];
$options['expose'
] =
[ 'contains' =>
[ 'items_per_page' =>
['default' => FALSE
],
'items_per_page_label' =>
['default' =>
$this->
t('Items per page'
)],
'items_per_page_options' =>
['default' => '5, 10, 25, 50'
],
'items_per_page_options_all' =>
['default' => FALSE
],
'items_per_page_options_all_label' =>
['default' =>
$this->
t('- All -'
)],