shortcut.schema.yml

Same filename and directory in other branches
  1. 9 core/modules/shortcut/config/schema/shortcut.schema.yml
  2. 8.9.x core/modules/shortcut/config/schema/shortcut.schema.yml
  3. 10 core/modules/shortcut/config/schema/shortcut.schema.yml
core/modules/shortcut/config/schema/shortcut.schema.yml

File

core/modules/shortcut/config/schema/shortcut.schema.yml

View source
  1. # Schema for the configuration files of the Shortcut module.
  2. shortcut.set.*:
  3. type: config_entity
  4. label: 'Shortcut settings'
  5. mapping:
  6. id:
  7. type: machine_name
  8. label: 'ID'
  9. # Shortcut set IDs are specifically limited to 23 characters, and allow
  10. # dashes but not underscores.
  11. # @see \Drupal\shortcut\ShortcutSetForm::form()
  12. constraints:
  13. Regex:
  14. pattern: '/^[a-z0-9-]+$/'
  15. message: "The %value machine name is not valid."
  16. Length:
  17. max: 23
  18. label:
  19. type: required_label
  20. label: 'Label'
  21. constraints:
  22. FullyValidatable: ~
  23. # Schema for theme settings.
  24. theme_settings.third_party.shortcut:
  25. type: mapping
  26. label: 'Shortcut settings'
  27. mapping:
  28. module_link:
  29. type: boolean
  30. label: 'Add shortcut link'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.