By phenaproxima 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:
Previously, it was possible for a block using the search_block_form plugin to have the page_id setting be an empty string, which would signify that the block should use the default search page. For example:
id: olivero_search_form_narrow
theme: olivero
region: primary_menu
weight: -4
plugin: search_form_block
settings:
id: search_form_block
label: 'Search form (narrow)'
label_display: '0'
provider: search
page_id: '' <---- EMPTY STRING
As of #3379725: Make Block config entities fully validatable, this isn't allowed. To use the default search page, page_id has to be NULL:
id: olivero_search_form_narrow
theme: olivero
region: primary_menu
weight: -4
plugin: search_form_block
settings:
id: search_form_block
label: 'Search form (narrow)'
label_display: '0'
provider: search
page_id: null <---- EXPLICIT NULL
Impacts:
Module developers
Site templates, recipes and distribution developers