0

Don't know where to start and not sure if there is already some builtin functionality that can be used. I have an entity and items on the page are rendered with class ItemEntityListBuilder how can I insert pagination on this page using ajax? Or how should look my entityQuery in order to retrieve the custom length of items from DB

$entity_ids = $query->condition('type_id', $type_entity->id())
      ->condition('status', 1)
      ->sort('created', 'DESC')
      ->pager(1)
      ->execute();
  • 1
    Did you add $render[]=[‘type’=>’pager’]; to your render array? – Jdrupal Jan 10 at 22:12

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.