Commit 1b3b6707 authored by alexpott's avatar alexpott

Issue #2690917 by prics, dawehner: Use mini pager by default for new views

parent ac0150a3
......@@ -800,7 +800,7 @@ protected function defaultDisplayOptions() {
$display_options['cache']['type'] = 'tag';
$display_options['query']['type'] = 'views_query';
$display_options['exposed_form']['type'] = 'basic';
$display_options['pager']['type'] = 'full';
$display_options['pager']['type'] = 'mini';
$display_options['style']['type'] = 'default';
$display_options['row']['type'] = 'fields';
......@@ -1038,9 +1038,9 @@ protected function pageDisplayOptions(array $form, FormStateInterface $form_stat
if (empty($page['items_per_page'])) {
$display_options['pager']['type'] = 'none';
}
// If the user checked the pager checkbox use a full pager.
// If the user checked the pager checkbox use a mini pager.
elseif (!empty($page['pager'])) {
$display_options['pager']['type'] = 'full';
$display_options['pager']['type'] = 'mini';
}
// If the user doesn't have checked the checkbox use the pager which just
// displays a certain amount of items.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment