Skip to content
linkit.schema.yml 2.45 KiB
Newer Older
# Schema for the configuration files of the Linkit module.

linkit.linkit_profile.*:
  type: config_entity
  mapping:
    label:
      type: label
      label: 'Name'
    id:
      type: string
    description:
      type: string
Emil Stjerneman's avatar
Emil Stjerneman committed
      type: sequence
      sequence:
        type: linkit.matcher
linkit.matcher:
Emil Stjerneman's avatar
Emil Stjerneman committed
  type: mapping
  mapping:
    id:
      type: string
Emil Stjerneman's avatar
Emil Stjerneman committed
      type: linkit.matcher.[%parent.id]
    weight:
      type: integer
linkit.matcher.*:
Emil Stjerneman's avatar
Emil Stjerneman committed
  type: mapping
  label: 'Matcher settings'
linkit.matcher.entity:
Emil Stjerneman's avatar
Emil Stjerneman committed
  type: mapping
  mapping:
      type: string
    bundles:
      type: sequence
      sequence:
        type: string
Emil Stjerneman's avatar
Emil Stjerneman committed
      nullable: true
    group_by_bundle:
      type: boolean
linkit.matcher.entity:*:
  type: linkit.matcher.entity
# Plugin \Drupal\linkit\Plugin\Linkit\Matcher\FileMatcher
linkit.matcher.entity:file:
  type: linkit.matcher.entity
  mapping:
    file_extensions:
      type: string
    file_status:
      type: integer
      default: 1
    images:
      type: mapping
      mapping:
        show_dimensions:
          type: boolean
        show_thumbnail:
          type: boolean
        thumbnail_image_style:
          type: string
          nullable: true
# Plugin \Drupal\linkit\Plugin\Linkit\Matcher\NodeMatcher
linkit.matcher.entity:node:
  type: linkit.matcher.entity
  mapping:
    include_unpublished:
      type: boolean
# Plugin \Drupal\linkit\Plugin\Linkit\Matcher\UserMatcher
linkit.matcher.entity:user:
  type: linkit.matcher.entity
  mapping:
    roles:
      type: sequence
      sequence:
        type: string
      nullable: true
# Third party settings on behalf of the imce module.
linkit.linkit_profile.*.third_party.imce:
  type: mapping
  mapping:
    use:
      type: boolean
    scheme:
      type: string
Emil Stjerneman's avatar
Emil Stjerneman committed

# Plugin \Drupal\linkit\Plugin\Filter\LinkitFilter
Emil Stjerneman's avatar
Emil Stjerneman committed
filter_settings.linkit:
  type: filter
  label: 'Linkit'
  mapping:
    title:
      type: boolean
      label: 'Automatically set the "title" attribute'

# Plugin \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalLink
# Linkit alters the plugin to save Linkit specific information used by the
# altered plugin.
ckeditor.plugin.drupallink:
  type: mapping
  label: 'Drupal link'
  mapping:
    linkit_enabled:
      type: boolean
      label: 'Use Linkit'
    linkit_profile:
      type: string
      label: 'Linkit profile'