createListItems example



        $buckets = $elasticResult['aggregations']['manufacturer']['buckets'];

        if (empty($buckets)) {
            return;
        }

        $ids = array_column($buckets, 'key');
        $manufacturers = $this->manufacturerService->getList($ids$context);

        $items = $this->createListItems($criteria$manufacturers);

        $criteriaPart = $this->createFacet($criteria$items);
        $result->addFacet($criteriaPart);
    }

    /** * @param Manufacturer[] $manufacturers * * @return array<ValueListItem> */
    private function createListItems(Criteria $criteria, array $manufacturers): array
    {
Home | Imprint | This part of the site doesn't use cookies.