Same filename and directory in other branches
- 8.9.x core/modules/block/config/schema/block.schema.yml
- 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
- # Schema for the configuration files of the Block module.
-
- block.block.*:
- type: config_entity
- label: 'Block'
- mapping:
- id:
- type: machine_name
- label: 'ID'
- # Blocks have atypical machine names: they allow periods for historical reasons.
- # @see https://www.drupal.org/project/drupal/issues/2685917
- # @see https://www.drupal.org/project/drupal/issues/2043527
- constraints:
- Regex:
- pattern: '/^[a-z0-9_.]+$/'
- message: "The %value machine name is not valid."
- theme:
- type: string
- label: 'Theme'
- region:
- type: string
- label: 'Region'
- weight:
- type: weight
- label: 'Weight'
- provider:
- type: string
- label: 'Provider'
- plugin:
- type: string
- label: 'Plugin'
- constraints:
- PluginExists:
- manager: plugin.manager.block
- interface: Drupal\Core\Block\BlockPluginInterface
- # Block plugin IDs may not be valid in blocks that are backed by
- # block_content entities that don't exist yet. Therefore, it's okay
- # to consider the fallback plugin ID as valid.
- allowFallback: true
- settings:
- type: block.settings.[%parent.plugin]
- visibility:
- type: sequence
- label: 'Visibility Conditions'
- sequence:
- type: condition.plugin.[id]
- label: 'Visibility Condition'