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