Skip to content

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.

License

Notifications You must be signed in to change notification settings

jadu/twig-helper-options-modifier

Repository files navigation

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.

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({})) %}

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages