[1.0.0-alpha3] Fix config schema

Created on 6 August 2024, 3 months ago
Updated 29 August 2024, 3 months ago

From:

  field_icons:
    type: ui_icon_formatter
    label: above
    settings:
      icon_settings:
        iconset_example_drupal_core:
          path:
            width: '32'
            height: '32'
            title: aaa
            alt: aaaa

To:

  field_icons:
    type: ui_icon_formatter
    label: above
    settings:
      icon_settings:
        iconset_example_drupal_core:
          width: '32'
          height: '32'
          title: aaa
          alt: aaaa

As the options depends on the iconset declaration and are not attached to the handler/discovery/extractor.

In config schema:

field.formatter.settings.ui_icon_formatter:
  type: mapping
  label: 'UI icon formatter settings'
  mapping:
    icon_settings:
      type: sequence
      label: 'Icon discovery settings'
      sequence:
        type: sequence
        label: 'Iconset list'
        sequence:
          type: ui_icons.iconset_options.[%key] <- ui_icons.iconset_options.path
#          type: ui_icons.iconset_options.[%parent] <- fatal error as the parent is sequence
#          type: ui_icons.iconset_options.[%parent.%key] <- ui_icons.iconset_options.icon_settings, one level above the target
✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France mogtofu33

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