block_content.schema.yml

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

File

core/modules/block_content/config/schema/block_content.schema.yml

View source
  1. # Schema for the configuration files of the Content Block module.
  2. block_content.type.*:
  3. type: config_entity
  4. label: 'Block type settings'
  5. mapping:
  6. id:
  7. type: machine_name
  8. label: 'ID'
  9. label:
  10. type: required_label
  11. label: 'Label'
  12. revision:
  13. type: boolean
  14. label: 'Whether a new revision should be created by default'
  15. description:
  16. type: text
  17. label: 'Description'
  18. nullable: true
  19. constraints:
  20. NotBlank:
  21. allowNull: true
  22. constraints:
  23. FullyValidatable: ~
  24. # @see \Drupal\block_content\Plugin\Block\BlockContentBlock
  25. # @eee \Drupal\block_content\Plugin\Derivative\BlockContent
  26. block.settings.block_content:*:
  27. type: block_settings
  28. label: 'Content block'
  29. constraints:
  30. FullyValidatable: ~
  31. mapping:
  32. # @see \Drupal\block_content\Plugin\Block\BlockContentBlock::defaultConfiguration()
  33. # @todo Deprecate this in https://www.drupal.org/project/drupal/issues/3426302
  34. status:
  35. type: boolean
  36. label: 'Status'
  37. # @todo Deprecate this in https://www.drupal.org/project/drupal/issues/3426302
  38. info:
  39. type: label
  40. label: 'Admin info'
  41. view_mode:
  42. type: string
  43. label: 'View mode'
  44. constraints:
  45. ConfigExists:
  46. prefix: core.entity_view_mode.block_content.

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