Props Helper Function

Created on 4 February 2025, 2 months ago

Problem/Motivation

Similar to the islands_slot_content function: https://git.drupalcode.org/project/islands/-/merge_requests/1/diffs#ce43... could we create a helper to allow you to pre-define, and then easily spread a props object into an islands component?

something like

{% set props = {'name': 'Fabien'} %}

and then

<drupal-island {% island_props(props) %} />

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

0.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brianperry

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

Comments & Activities

Production build 0.71.5 2024