Allows to change the display settings right before executing the block.
\Drupal\views\Plugin\Block\ViewsBlock $block: The block plugin for views displays.
public function preBlockBuild(ViewsBlock $block) { $config = $block->getConfiguration(); if ($config['items_per_page'] !== 'none') { $this->view ->setItemsPerPage($config['items_per_page']); } }