Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Oct 3, 2025

Description

The Element::EVENT_REGISTER_CARD_ATTRIBUTES event allows you to adjust what card attributes are available in the card view designer. However, if you want to, e.g. add a new attribute, there’s currently no way to limit that addition to e.g. a specific entry type or to a field layout that contains a specific field.

This PR adds the ability to pass the FieldLayout to the RegisterElementCardAttributesEvent, giving you greater control over when card attributes should be adjusted.

Related issues

n/a; from a conversation with @tommysvr

@i-just i-just requested a review from brandonkelly October 3, 2025 09:37
@brandonkelly brandonkelly merged commit fb3298f into 5.9 Oct 3, 2025
@brandonkelly brandonkelly deleted the feature/registerCardAttributes-and-field-layout branch October 3, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants