src/Locale/LocaleService.php
public function restoreState()
    {
        if ($activeCountry = $this->sessionState->getByKey(self::ACTIVE_COUNTRY_KEY)) {
            $this->activeCountry = $activeCountry;
        }
    }
public function restoreState()
    {
        if ($activeCountry = $this->sessionState->getByKey(self::ACTIVE_COUNTRY_KEY)) {
            $this->activeCountry = $activeCountry;
        }
    }
public function restoreState ( ) { if ( $ activeCountry = $ this -> sessionState -> getByKey ( self :: ACTIVE_COUNTRY_KEY ) ) { $ this -> activeCountry = $ activeCountry ; } }
Uses the State service to retrieve the active country's identifier and sets the active country.

If the retrieved identifier is not an instance of the Identifier Interface, then it checks if it is a string,
which it uses to create a new Identifier object to set the active country.
@return void
Uses the State service to retrieve the active country s identifier and sets the active country .