Problem/Motivation
Settings Tray is moving to contrib.
#[Block(
id: "page_title_block",
admin_label: new TranslatableMarkup("Page title"),
forms: [
'settings_tray' => FALSE,
]
)]
The settings_tray metadata in the following files needs moving to Settings Tray module in an alter hook or similar:
core/lib/Drupal/Core/Block/Plugin/Block/PageTitleBlock.php
core/modules/help/src/Plugin/Block/HelpBlock.php
core/modules/system/src/Form/SystemBrandingOffCanvasForm.php
core/modules/system/src/Plugin/Block/SystemBrandingBlock.php
core/modules/system/src/Plugin/Block/SystemMainBlock.php
core/modules/system/src/Plugin/Block/SystemMenuBlock.php
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Comments
Comment #4
quietone commentedComment #5
longwaveLooks good. I think hardcoding them like that is fine for this case, technically someone might want to alter them - but that seems fairly unlikely, that can always be solved a better way in contrib if needed.
However, it looks like SystemMenuOffCanvasForm is only used by this feature, so I think that should move to Settings Tray as well.
Comment #6
quietone commentedComment #7
longwaveThanks, I think we are done here. And I realised the hardcoded block names can still be altered, just by running another block alter hook that runs after the Settings Tray one does, so no real change there anyway for anyone who might be doing something additional here.
Comment #10
godotislateCommitted 5ccc0bf and pushed to main. Thanks!