entity.schema.yml 3.11 KB
Newer Older
1 2 3 4
# Schema for Configuration files of the entity module.

entity.view_mode.*.*:
  type: mapping
5
  label: 'Entity view mode settings'
6 7 8
  mapping:
    id:
      type: string
9
      label: 'ID'
10 11 12 13 14
    uuid:
      type: string
      label: 'UUID'
    label:
      type: label
15
      label: 'The human-readable name of the view mode'
16 17
    targetEntityType:
      type: string
18
      label: 'Target entity type'
19 20 21 22 23 24 25 26 27
    status:
      type: boolean
      label: 'Enabled'
    cache:
      type: boolean
      label: 'Cached'
    langcode:
      type: string
      label: 'Default language'
28 29 30
    dependencies:
      type: config_dependencies
      label: 'Dependencies'
31 32

entity.form_mode.*.*:
33
  type: config_entity
34 35
  label: 'Entity form mode settings'
  mapping:
36 37 38 39 40 41
    id:
      type: string
      label: 'ID'
    label:
      type: label
      label: 'Label'
42 43 44 45 46 47
    targetEntityType:
      type: string
      label: 'Target entity type'
    cache:
      type: boolean
      label: 'Cache'
48 49

# Overview configuration information for view mode or form mode displays.
50
entity.view_display.*.*.*:
51
  type: config_entity
52 53
  label: 'Entity display'
  mapping:
54 55 56 57 58 59
    id:
      type: string
      label: 'ID'
    label:
      type: label
      label: 'Label'
60 61 62 63 64 65 66 67 68 69 70 71 72
    targetEntityType:
      type: string
      label: 'Target entity type'
    bundle:
      type: string
      label: 'Bundle'
    mode:
      type: string
      label: 'View or form mode machine name'
    content:
      type: sequence
      label: 'Field display formatters'
      sequence:
73
        - type: entity_view_display.field.[type]
74 75 76 77 78 79 80 81 82
    hidden:
      type: sequence
      label: 'Field display setting'
      sequence:
        - type: boolean
          label: 'Value'

# Overview configuration information for form mode displays.
entity.form_display.*.*.*:
83
  type: config_entity
84 85
  label: 'Entity form display'
  mapping:
86 87 88
    id:
      type: string
      label: 'ID'
89 90 91 92 93 94 95 96 97
    targetEntityType:
      type: string
      label: 'Target entity type'
    bundle:
      type: string
      label: 'Bundle'
    mode:
      type: string
      label: 'View or form mode machine name'
98 99 100
    status:
      type: boolean
      label: 'Enabled'
101 102
    content:
      type: sequence
103
      label: 'Field display formatters'
104 105
      sequence:
        - type: entity_form_display.field.[type]
106 107 108 109 110 111
    hidden:
      type: sequence
      label: 'Hidden'
      sequence:
        - type: boolean
          label: 'Component'
112 113 114
    dependencies:
      type: config_dependencies
      label: 'Dependencies'
115 116

# Default schema for entity display field with undefined type.
117
entity_view_display.field.*:
118
  type: entity_field_view_display_base
119 120 121 122
  label: 'Entity display default'

# Default schema for entity form display field with undefined type.
entity_form_display.field.*:
123
  type: entity_field_form_display_base
124
  label: 'Entity form display default'
125

126 127 128
entity_form_display.field.string:
  type: entity_field_form_display_base
  label: 'Text field display format settings'
129 130
  mapping:
    settings:
131
      type: mapping
132
      label: 'Settings'
133 134 135 136 137 138 139
      mapping:
        size:
          type: integer
          label: 'Size of textfield'
        placeholder:
          type: label
          label: 'Placeholder'