Unverified Commit ef16feda authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3083379 by hexabinaer: Extend the available number of items per views block

parent 144c05e1
Loading
Loading
Loading
Loading
+8 −0
Changes for core/modules/views/src/Plugin/views/display/Block.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -295,10 +295,18 @@ public function blockForm(ViewsBlock $block, array &$form, FormStateInterface $f
            '#title' => $this->t('Items per block'),
            '#options' => [
              'none' => $this->t('@count (default setting)', ['@count' => $this->getPlugin('pager')->getItemsPerPage()]),
              1 => 1,
              2 => 2,
              3 => 3,
              4 => 4,
              5 => 5,
              6 => 6,
              10 => 10,
              12 => 12,
              20 => 20,
              24 => 24,
              40 => 40,
              48 => 48,
            ],
            '#default_value' => $block_configuration['items_per_page'],
          ];