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

File

core/modules/block/config/schema/block.schema.yml
View source
  1. # Schema for the configuration files of the Block module.
  2. block.block.*:
  3. type: config_entity
  4. label: 'Block'
  5. mapping:
  6. id:
  7. type: machine_name
  8. label: 'ID'
  9. # Blocks have atypical machine names: they allow periods for historical reasons.
  10. # @see https://www.drupal.org/project/drupal/issues/2685917
  11. # @see https://www.drupal.org/project/drupal/issues/2043527
  12. constraints:
  13. Regex:
  14. pattern: '/^[a-z0-9_.]+$/'
  15. message: "The %value machine name is not valid."
  16. theme:
  17. type: string
  18. label: 'Theme'
  19. region:
  20. type: string
  21. label: 'Region'
  22. weight:
  23. type: weight
  24. label: 'Weight'
  25. provider:
  26. type: string
  27. label: 'Provider'
  28. plugin:
  29. type: string
  30. label: 'Plugin'
  31. constraints:
  32. PluginExists:
  33. manager: plugin.manager.block
  34. interface: Drupal\Core\Block\BlockPluginInterface
  35. # Block plugin IDs may not be valid in blocks that are backed by
  36. # block_content entities that don't exist yet. Therefore, it's okay
  37. # to consider the fallback plugin ID as valid.
  38. allowFallback: true
  39. settings:
  40. type: block.settings.[%parent.plugin]
  41. visibility:
  42. type: sequence
  43. label: 'Visibility Conditions'
  44. sequence:
  45. type: condition.plugin.[id]
  46. label: 'Visibility Condition'