Skip to content
Snippets Groups Projects
Commit 1b3b6707 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent ac0150a3
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment