42 parent::__construct($context);
55 $countryCode = $this->_request->getParam(\
Magento\Paypal\Model\
Config\StructurePlugin::REQUEST_PARAM_COUNTRY);
56 if ($countryCode ===
null || preg_match(
'/^[a-zA-Z]{2}$/', $countryCode) == 0) {
57 $scope = $this->scopeDefiner->getScope();
59 $this->backendConfig->setData($scope, $this->_request->getParam($scope));
61 $countryCode = $this->backendConfig->getConfigDataValue(
62 \
Magento\Paypal\Block\Adminhtml\System\
Config\Field\Country::FIELD_CONFIG_PATH
65 if (empty($countryCode)) {
66 $countryCode = $this->directoryHelper->getDefaultCountry();
getConfigurationCountryCode()
__construct(\Magento\Framework\App\Helper\Context $context, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Config\Model\Config $backendConfig, \Magento\Config\Model\Config\ScopeDefiner $scopeDefiner)