Fatal error when trying to use with patterns

Created on 31 October 2024, 5 months ago

Problem/Motivation

When attempting to use with patterns

props:
  type: object
  properties:
    icon_name:
      title: 'Icon Name'
      description: 'Will be pulled from sprite.svg.'
      $ref: 'ui-patterns://icon'

Every page on the site (even those without patterns) throws a fatal error

Drupal\Core\Render\Component\Exception\InvalidComponentException: [props.properties.icon_name.properties.icon_pack] Array value found, but an object is required in Drupal\Core\Theme\Component\ComponentValidator->validateDefinition() (line 121 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Steps to reproduce

Enable ui_icons_patterns_test module
See fatal error now

Proposed resolution

TBD but don't throw fatal erorrs

Remaining tasks

Determine issue

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

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

Comments & Activities

Production build 0.71.5 2024