Config schema miss

Created on 11 December 2024, about 1 month ago

Problem/Motivation

In Replace FontAwesome related features by UI Icons Active , I am adding UI Icons integration with icon field, link field, media, menu, etc.

I found some missing parts of the config schema.

On the icon field on my media type, core.entity_view_display.media.icon.default:

...
  field_media_ui_icon:
    type: icon_formatter
    label: hidden
    settings:
      icon_settings:
        width: 32px
        height: 32px
        color: ''
        alt: ''
    third_party_settings: {  }
    weight: 0
    region: content
...

In Config Inspector:

content.field_media_ui_icon.settings.icon_settings.width Undefined undefined Yes 32px missing schema
content.field_media_ui_icon.settings.icon_settings.height Undefined undefined Yes 32px missing schema
content.field_media_ui_icon.settings.icon_settings.color Undefined undefined Yes missing schema
content.field_media_ui_icon.settings.icon_settings.alt Undefined undefined Yes missing schema

In a linkit icon with attributes in a Layout Builder, core.entity_view_display.block_content.featuring.default:

...
            configuration:
              id: 'field_block:block_content:featuring:field_cta'
              label: CTA
              label_display: '0'
              provider: layout_builder
              context_mapping:
                entity: layout_builder.entity
                view_mode: view_mode
              formatter:
                type: icon_linkit_formatter
                label: hidden
                settings:
                  trim_length: 80
                  url_only: false
                  url_plain: false
                  rel: '0'
                  target: '0'
                  linkit_profile: default
                  icon_settings:
                    fontawesome_brands:
                      width: 1em
                      height: 1em
                      color: ''
                      alt: ''
                    fontawesome_regular:
                      width: 1em
                      height: 1em
                      color: ''
                      alt: ''
                    fontawesome_solid:
                      width: 1em
                      height: 1em
                      color: ''
                      alt: ''
                    bootstrap:
                      size: 1em
                      color: ''
                      alt: ''
                  fontawesome_brands:
                    width: 1em
                    height: 1em
                    color: ''
                    alt: ''
                  fontawesome_regular:
                    width: 1em
                    height: 1em
                    color: ''
                    alt: ''
                  fontawesome_solid:
                    width: 1em
                    height: 1em
                    color: ''
                    alt: ''
                  bootstrap:
                    size: 1em
                    color: ''
                    alt: ''
                third_party_settings: {  }
            weight: 1

...

Settings entries per icon pack are still duplicated.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France Grimreaper France 🇫🇷

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