Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jadu/twig-helper-options-modifier
- Owner: jadu
- License: mit
- Created: 2023-10-24T09:50:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-25T08:35:24.000Z (about 1 year ago)
- Last Synced: 2024-04-16T00:49:51.497Z (7 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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({})) %}
```