language.schema.yml 2.98 KB
Newer Older
1 2
# Schema for the configuration files of the Language module.

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
language_type_negotiation:
  type: mapping
  label: 'Language negotiation per type setting'
  mapping:
    enabled:
      type: sequence
      label: 'Enabled negotiators'
      sequence:
        - type: integer
          label: Weight
    method_weights:
      type: sequence
      label: 'Negotiator weights'
      sequence:
        - type: integer
          label: Weight

20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
language.types:
  type: mapping
  label: 'Language types'
  mapping:
    all:
      type: sequence
      label: 'All language types'
      sequence:
        - type: string
          label: 'Language type'
    configurable:
      type: sequence
      label: 'Configurable language types'
      sequence:
        - type: string
          label: 'Language type'
36 37 38 39 40 41
    negotiation:
      type: sequence
      label: 'Language negotiation per type settings'
      sequence:
        - type: language_type_negotiation
          label: 'Language negotiation per type setting'
42

43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
language.negotiation:
  type: mapping
  label: 'Language detection methods'
  mapping:
    session:
      type: mapping
      label: 'Session'
      mapping:
        parameter:
          type: string
          label: 'Request/session parameter'
    url:
      type: mapping
      label: 'Language from the URL (Path prefix or domain).'
      mapping:
        source:
          type: string
          label: 'Part of the URL that determines language'
        prefixes:
          type: sequence
          label: 'Path prefix configuration'
          sequence:
            - type: string
              label: 'Path prefix'
        domains:
          type: sequence
          label: 'Domain configuration'
          sequence:
            - type: string
              label: 'Domain'
73 74 75
    selected_langcode:
      type: string
      label: 'Selected language'
76 77 78 79 80 81 82

language.mappings:
  type: sequence
  label: 'Language mapping'
  sequence:
    - type: string
      label: 'Language'
83 84

language.entity.*:
85
  type: config_entity
86 87
  label: 'Language'
  mapping:
88 89 90 91 92 93
    id:
      type: string
      label: 'ID'
    label:
      type: label
      label: 'Label'
94
    direction:
95
      type: string
96 97 98 99 100 101 102
      label: 'Direction'
    weight:
      type: integer
      label: 'Weight'
    locked:
      type: boolean
      label: 'Locked'
103

104 105 106
language.content_settings.*.*:
  type: config_entity
  label: 'Content Language Settings'
107
  mapping:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
    id:
      type: string
      label: 'ID'
    target_entity_type_id:
      type: string
      label: 'Entity Type ID'
    target_bundle:
      type:  string
      label: 'Bundle'
    default_langcode:
      type: string
      label: 'Default language'
    language_alterable:
      type: boolean
      label: 'Allow to alter the language'
    third_party_settings:
124
      type: sequence
125
      label: 'Third party settings'
126
      sequence:
127
        - type: content_settings.third_party.[%key]
128 129 130 131 132 133 134 135

condition.plugin.language:
  type: condition.plugin
  mapping:
    langcodes:
      type: sequence
      sequence:
        - type: string