Make contentblock_title_replacement_formatter compatible with other content entity types apart of nodes

Created on 15 February 2023, over 1 year ago
Updated 27 November 2023, 7 months ago

Problem/Motivation

Now the contentblock_title_replacement_formatter is only compatible with nodes. Would be nice (and not very hard) to extend that compatibility to make it work with other content entity types.

Steps to reproduce

* Enable layout builder for a taxonomy_term vocabulary
* Add the Title block to the layout
* You will get the text "Placeholder for replacement title" because currently the contentblock_title_replacement_formatter is not capable to load other content entities, only works with nodes.

Proposed resolution

Abstract the logic so contentblock_title_replacement_formatter can work with other content entities

Remaining tasks

- Patch
- Review
- Test

User interface changes

None

API changes

None

Data model changes

None

✨ Feature request
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain akalam

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024