Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/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.
https://github.com/jadu/twig-helper-options-modifier

Last synced: 5 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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.

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