Add a Twig function to create HtmxAttributes

Created on 13 September 2024, 3 months ago
Updated 19 September 2024, 3 months ago

Problem/Motivation

It would be very useful in certain cases to use our HtmxAttribute object in Twig templates

Proposed resolution

Add a create_htmx Twig function that creates and returns a new HtmxAttribute

Remaining tasks

User interface changes

None

API changes

{% set htmx_attribute = create_htmx() %}
{# build up your htmx attributes #}
{%- attributes.merge(htmx_attribute) %}
πŸ“Œ Task
Status

Fixed

Version

1.3

Component

Drupal Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024