How to pass content_attributes to SDC without it being shown in the XB UI

Created on 11 December 2024, 11 days ago

Overview

I created a yml config that requires content_attributes from twig. I added it as part of my component.yml. As I understand that any properties will be shown in the UI so how do I hide this?

Here is the an example config I use:

$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json
name: Card Icon
status: stable
props:
  type: object
  properties:
    content_attributes:
      type: string
      title: 'Content attributes'
      description: 'Same as attributes, except applied to the main content tag that appears in the template.'
    title:
      type: string
      title: 'Title'
      description: 'Main title'
    body:
      type: string
      title: 'Bodu'
      description: 'Main content text'
    more_content:
      type: string
      title: More content
      description: 'Additional content'
  required:
    - content_attributes

Proposed resolution

User interface changes

Feature request
Status

Active

Version

0.0

Component

Config management

Created by

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

Comments & Activities

Production build 0.71.5 2024