bundles/BlockManagerBundle/Templating/Twig/Runtime/HelpersRuntime.php
public function getCountryFlag(string $countryCode): string
    {
        try {
            return FlagGenerator::fromCountryCode($countryCode);
        } catch (Throwable $t) {
            return $countryCode;
        }
    }
public function getCountryFlag(string $countryCode): string
    {
        try {
            return FlagGenerator::fromCountryCode($countryCode);
        } catch (Throwable $t) {
            return $countryCode;
        }
    }
public function getCountryFlag ( string $ countryCode ) : string { try { return FlagGenerator :: fromCountryCode ( $ countryCode ) ; } catch ( Throwable $ t ) { return $ countryCode ; } }
Returns the country flag as an emoji string for provided country code.

If the flag cannot be generated, the country code is returned as is.

@param string $countryCode
Returns the country flag as an emoji string for provided country code .