Elcodi\Store\GeoBundle\Form\LocationSelectorBuilder::getHierarchy PHP Method

getHierarchy() protected method

Gets the location hierarchy.
protected getHierarchy ( string $locationId ) : Elcodi\Component\Geo\ValueObject\LocationData[]
$locationId string The location identifier
return Elcodi\Component\Geo\ValueObject\LocationData[]
    protected function getHierarchy($locationId)
    {
        try {
            $hierarchy = $this->locationProvider->getHierarchy($locationId);
        } catch (EntityNotFoundException $e) {
            $hierarchy = [];
        }
        return $hierarchy;
    }