|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (ScopeConfigInterface $scopeConfig, StoreManagerInterface $storeManager) | |
| getAllowedCountries ( $scope=ScopeInterface::SCOPE_WEBSITE, $scopeCode=null) | |
| makeCountriesUnique (array $allowedCountries) | |
| getCountriesFromConfig ($scope, $scopeCode) | |
Data Fields | |
| const | ALLOWED_COUNTRIES_PATH = 'general/country/allow' |
Provider of allowed countries based on configuration settings
@api
Definition at line 19 of file AllowedCountries.php.
| __construct | ( | ScopeConfigInterface | $scopeConfig, |
| StoreManagerInterface | $storeManager | ||
| ) |
| \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
| \Magento\Store\Model\StoreManagerInterface | $storeManager |
Definition at line 38 of file AllowedCountries.php.
| getAllowedCountries | ( | $scope = ScopeInterface::SCOPE_WEBSITE, |
|
$scopeCode = null |
|||
| ) |
Retrieve all allowed countries for scope or scopes
| string | $scope | |
| string | null | $scopeCode |
Definition at line 54 of file AllowedCountries.php.
| getCountriesFromConfig | ( | $scope, | |
| $scopeCode | |||
| ) |
Takes countries from Countries Config data
| string | $scope | |
| int | $scopeCode |
Definition at line 125 of file AllowedCountries.php.
| makeCountriesUnique | ( | array | $allowedCountries | ) |
Return Unique Countries by merging them by keys
| array | $allowedCountries |
Definition at line 112 of file AllowedCountries.php.
| const ALLOWED_COUNTRIES_PATH = 'general/country/allow' |
Definition at line 21 of file AllowedCountries.php.