Add a template and theme suggestions per composite

Created on 3 November 2022, about 2 years ago
Updated 2 February 2023, almost 2 years ago

Problem/Motivation

Currently a composite renders with no wrapper, just rendering the child elements. It would be nice to add a template (and allow themes to override it) should developers wish to e.g. wrap fields in a fieldset, apply custom layout etc.

Moreover it would be handy to add theme suggestions per composite to allow overriding layout per composite.

Proposed resolution

Attached patch adds a theme function, preprocessing and basic template, taken from Webform's Example Composite module.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bgilhome Victoria

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024