scopeConfig = $scopeConfig; } /** * Retrieve list of top destinations countries * * @return array */ public function getTopDestinations() { $destinations = (string)$this->scopeConfig->getValue( self::CONFIG_DESTINATIONS_PATH, ScopeInterface::SCOPE_STORE ); return !empty($destinations) ? explode(',', $destinations) : []; } }