Pass argument to view for pager limit It is possible to pass and argument to a view for the limit on its pager? I see that there is this question for Drupal 7, but not Drupal 8.
Try this out :

use Drupal\views\ViewExecutable;

/**
 * Implements hook_views_pre_build().
 */
function customModule_views_pre_build(ViewExecutable $view) {
  if ($view-&gt;id() == 'your_view_id') {
   //- Set the new limit here // 3
   $view-&gt;setItemsPerPage(3);
  }
}