/** * {@inheritdoc} */ public function build(DataProviderInterface $dataProvider, array $dimensions, RequestBucketInterface $bucket, Table $entityIdsTable) { /** @var DynamicBucket $bucket */ $algorithm = $this->algorithmRepository->get($bucket->getMethod()); $data = $algorithm->getItems($bucket, $dimensions, $this->entityStorageFactory->create($entityIdsTable)); $resultData = $this->prepareData($data); return $resultData; }