state_data

The state_data filter gets an array of state/province data for the variable value if the variable value is a valid state/province or state/province abbreviation.

The array contains the following information:

  • abbreviation: the 2 letter state/province abbreviation
  • name: the full state/province name
This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{% set data = variable|state_data %}
This documentation is only for Aptuitiv CMS. Learn more.
Get Started With Aptuitiv