By narendrar on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.1.x
Introduced in version:
11.1.0
Issue links:
Description:
The config schema for Block config entities (type: block.block.*), and specifically the "base settings" for block plugins (type: block_settings) contains three key-value pairs (status, info and view_mode) that actually are block_content block-specific.
Hence, these 3 key-value pairs are removed from block_settings and added in new type: block.settings.block_content:*:
Before
block_settings:
type: mapping
label: 'Block settings'
mapping:
id:
type: string
label: 'ID'
label:
type: label
label: 'Description'
label_display:
type: string
label: 'Display title'
provider:
type: string
label: 'Provider'
status:
type: boolean
label: 'Status'
info:
type: label
label: 'Admin info'
view_mode:
type: string
label: 'View mode'
context_mapping:
type: sequence
label: 'Context assignments'
sequence:
type: string
After
block.settings.block_content:*:
type: block_settings
label: 'Content block'
constraints:
FullyValidatable: ~
mapping:
# @see \Drupal\block_content\Plugin\Block\BlockContentBlock::defaultConfiguration()
# @todo Deprecate this in https://www.drupal.org/project/drupal/issues/3426302
status:
type: boolean
label: 'Status'
# @todo Deprecate this in https://www.drupal.org/project/drupal/issues/3426302
info:
type: label
label: 'Admin info'
view_mode:
type: string
label: 'View mode'
constraints:
ConfigExists:
prefix: core.entity_view_mode.block_content.
Impacts:
Module developers