I have created a custom block using Entity Query with pagination to get the data and everything works fine with

$render[] = [
  '#type' => 'pager',

But I can find a way to change the position of the pager. For example, I want to include them in my custom block template. I can't do that.

For Drupal 7 we have the following option but I can find the same way to do that in Drupal 8


Thanks for your help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.