[2.0.x-alpha2] Follow-up Field Formatters

Created on 16 April 2024, 7 months ago
Updated 9 June 2024, 6 months ago

Move the logic out of FieldPropertiesSourcePropDeriver::getPropTypeToFieldTypeMap()

  1. Add a new annotation to field types. Example:
     * @PropType(
     *   id = "string",
     ...
     *   typed_data = {
     *    "datetime_iso8601",
     *    "email",
     *    "string"
     *  }
     * )
  2. Add a ui_patterns (not in ui_patterns_field_formatters) service or (a prop type plugins manager method) to get UI Patterns prop type(s) from a Drupal typed data.
  3. Use this in FieldPropertiesSourcePropDeriver

See mapping in specs: https://docs.google.com/document/d/1-GaMK1Qk-h0hmB7GtAcnqPTuCOGMaxeRguop...

This will also be useful for TokenSource plugin.

FieldFormatter source

Let's test if it is recursive once πŸ“Œ [2.0.0-alpha3] Form builder: Simpler sources selector (2/2) + make it nestable Needs work is done (because of the Form ID)

Code

Field label appears inside other context

Appears inside other context case like inside ui_patterns_views (row or style plugin)

Context

Why we need to get context value 'entity_type_id' and not get from the context 'entity' (fieldSourceBase line 92, ComponentFormatterBase line 121)

Description source settings

In modules/ui_patterns_field_formatters/src/Plugin/UiPatterns/Source/FieldSourceBase.php
Method settingsForm why we do render of plugin description ?

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

UI Patterns Field Formatters [2.x only]

Created by

πŸ‡«πŸ‡·France pdureau Paris

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