Get a Demo

country_data

The country_data filter gets an array of country data for the variable value if the variable value is a valid country or country abbreviation.

The array contains the following information:

  • abbreviation: the 2 letter country abbreviation
  • name: the full country name
This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{% set data = variable|country_data %}
Get Started With Aptuitiv