protected function getBasketDeliveryCountries()
    {
        $countries = [];

        foreach ($this->basket->getBasketElements() as $basketElement) {
            $product = $basketElement->getProduct();

            foreach ($product->getDeliveries() as $delivery) {
                $code = $delivery->getCountryCode();

                if (!isset($countries[$code])) {
                    $countries[$code] = Intl::getRegionBundle()->getCountryName($code);
                }
            }
        }

        return $countries;
    }
protected function getBasketDeliveryCountries()
    {
        $countries = [];

        foreach ($this->basket->getBasketElements() as $basketElement) {
            $product = $basketElement->getProduct();

            foreach ($product->getDeliveries() as $delivery) {
                $code = $delivery->getCountryCode();

                if (!isset($countries[$code])) {
                    $countries[$code] = Intl::getRegionBundle()->getCountryName($code);
                }
            }
        }

        return $countries;
    }
protected function getBasketDeliveryCountries ( ) { $ countries = [ ] ; foreach ( $ this -> basket -> getBasketElements ( ) as $ basketElement ) { $ product = $ basketElement -> getProduct ( ) ; foreach ( $ product -> getDeliveries ( ) as $ delivery ) { $ code = $ delivery -> getCountryCode ( ) ; if ( ! isset ( $ countries [ $ code ] ) ) { $ countries [ $ code ] = Intl :: getRegionBundle ( ) -> getCountryName ( $ code ) ; } } } return $ countries ; }
Returns basket elements delivery countries.

@return array
Returns basket elements delivery countries .