lib/ContentProvider/ContentProvider.php
private function loadLocation(): ?Location
    {
        if (!$this->context->has('ez_location_id')) {
            return null;
        }

        return $this->locationService->loadLocation(
            (int) $this->context->get('ez_location_id')
        );
    }
private function loadLocation(): ?Location
    {
        if (!$this->context->has('ez_location_id')) {
            return null;
        }

        return $this->locationService->loadLocation(
            (int) $this->context->get('ez_location_id')
        );
    }
private function loadLocation ( ) : ? Location { if ( ! $ this -> context -> has ( 'ez_location_id' ) ) { return null ; } return $ this -> locationService -> loadLocation ( ( int ) $ this -> context -> get ( 'ez_location_id' ) ) ; }
Loads the location from the eZ Platform API by using the location ID
stored in the context.
Loads the location from the eZ Platform API by using the location ID stored in the context .