Add the ability to alter props and slots.

Created on 3 July 2024, 2 months ago

Problem/Motivation

The module processes all props through the Drupal render function, which returns a markup object.
If the component's prop has a other type than string this results in the validation error.

We didn't find a better way to resolve this issue than simply converting this prop value to - boolean.

Returning all props as a markup object can cause more problems.

This gave us the idea that it would be good to be able to alter props and slots processed by the module.

Proposed resolution

Create alter hooks to be able to update props and slots values before passing them to the render array.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine alt.dev

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