jadu/twig-helper-options-modifier

An internal method for Pulsar’s form helpers which checks for the presence of errors or help text and creates GUIDs to be targeted by aria attributes

1.0.0 2023-10-24 10:07 UTC

This package is auto-updated.

Last update: 2024-04-25 09:40:52 UTC


README

An internal method for Pulsar’s form helpers which checks for the presence of errors or help text and creates GUIDs to be targeted by aria attributes.

Usage

Presumes the presence of an options variable, which is passed to the modify_options() method and overwrites itself with the modified array, or an empty one to prevent errors being thrown.

{% set options = modify_options(options|default({})) %}