code: public function findWithBlockUsedForPaginate(PaginateFinderConfiguration $configuration, $siteId, $language, $blockId)
      {
          $qb = $this->createQueryBuilder();
          $qb->field('language')->equals($language);
          $qb->field('siteId')->equals($siteId);
  
          $functionFilter = $this->generateFunctionFilterBlock($blockId);
          $qb->where($functionFilter);
  
          $order = $configuration->getOrder();
          if (!empty($order)) {
              $qb->sort($order);
          }
  
          $qb->skip($configuration->getSkip());
          $qb->limit($configuration->getLimit());
  
          return $qb->getQuery()->execute();
      }
docs: @param PaginateFinderConfiguration $configuration
  @param string                      $siteId
  @param string                      $language
  @param string                      $blockId
  
  @return array