public function switchCountry($sCountryCode)
    {
        if (empty($sCountryCode) || !PluginManager::instance()->hasPlugin('RainLab.Location')) {
            return;
        }

        $this->obActiveCountry = \RainLab\Location\Models\Country::whereCode($sCountryCode)->first();
    }
public function switchCountry($sCountryCode)
    {
        if (empty($sCountryCode) || !PluginManager::instance()->hasPlugin('RainLab.Location')) {
            return;
        }

        $this->obActiveCountry = \RainLab\Location\Models\Country::whereCode($sCountryCode)->first();
    }
public function switchCountry ( $ sCountryCode ) { if ( empty ( $ sCountryCode ) || ! PluginManager :: instance ( ) -> hasPlugin ( 'RainLab.Location' ) ) { return ; } $ this -> obActiveCountry = \ RainLab \ Location \ Models \ Country :: whereCode ( $ sCountryCode ) -> first ( ) ; }
Switch active country by code
@param string $sCountryCode
Switch active country by code