Returns the absolute url of a standard country-flag-icon contained in Hublify.


Syntax

iconCountryFlagUrl(?string $countryCode): mixed


Parameter

@param string|null $countryCode The 2-letter-ISO-country-code (caseinsensitive), E.g. "DE", "EN".


Return

The absolut url to the country-flag-icon. If the country-code is not 2-letters long, an empty string is returned.


Example

Getting the German Country Flag.

{% set url = hublify.iconCountryFlagUrl("DE") %}
Flag URL: {{ url }}

 or as image:

<img src="{{ url }}" />