Add support for field formatters

Created on 12 April 2024, 7 months ago
Updated 17 May 2024, 6 months ago

Motivation

We want to be able to use field formatters as CE formatters. Generelly, every field formatter should be available via CE-formatters as well. The resulting string should be usable either as attribute or slot.

Proposed resolution

* Add one class for CoreFieldCeFormatter that takes care off invoking the configured core field formatter plugin
* Implement a plugin deriver to do so. That will register 1 plugin instance per field formatter.
* Make sure field formatters are only applicable when they are compatible with the field --> forward isApplicable call correctly.

For derivative plugins you can check https://www.sitepoint.com/tutorial-on-using-drupal-8-plugin-derivatives-...
The deriver makes sure to simply register the same plugin class multiple times. The plugin definition will differ by field, which the plugin-class can use/read to know which field-formatter to handle.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇦🇹Austria fago Vienna

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