lib/Backend/ProductBackend.php
private function buildLocations(array $taxons): array
    {
        return array_map(
            function (TaxonInterface $taxon): Location {
                return $this->buildLocation($taxon);
            },
            $taxons
        );
    }
private function buildLocations(array $taxons): array
    {
        return array_map(
            function (TaxonInterface $taxon): Location {
                return $this->buildLocation($taxon);
            },
            $taxons
        );
    }
private function buildLocations ( array $ taxons ) : array { return array_map ( function ( TaxonInterface $ taxon ) : Location { return $ this -> buildLocation ( $ taxon ) ; } , $ taxons ) ; }
Builds the locations from provided taxons.

@param \Sylius\Component\Taxonomy\Model\TaxonInterface[] $taxons

@return \Netgen\ContentBrowser\Sylius\Item\Product\Location[]
Builds the locations from provided taxons .