I would like the change the menu setting on the header block when a user enables the Tatsu theme.
Is there any way to do that?
Here is the code I would use in hook_install for a module, is there a version of this for a theme:
$layouts = layout_get_all_configs('layout');
foreach ($layouts as $layout_name => $layout) {
foreach ($layout['content'] as $block_id => $block) {
if ($block['plugin'] === 'system:header') {
config_set('layout.layout.' . $layout_name, 'content.' . $block_id . '.data.settings.block_settings.menu', 'my-menu-id');
}
}
}
Recent comments
My suggestions, if there is time to look at recent bug reports: (1) Not sure if the fix for this issue still needs a code review to get labeled as RTBC: Editor link autocomplete...
July 9th, 2026 - Weekly Meetings
Also I would welcome feedback on the approach I've taken to: [A11Y] Update aria role on messages area based on type of messages (#5715)
July 9th, 2026 - Weekly Meetings
[DX] Add layout machine name as a class to the body element (#7156) Two dashes -- or single dash - between label and value...
July 9th, 2026 - Weekly Meetings
Just to say I discovered an issue with doing this, which I have documented here. https://github.com/backdrop/backdrop-issues/issues/7168 To make this work, before this issue is...
Let users search for NIDs?
You could probably do this with a View where the exposed filter is the node id Ah, interesting idea. Thanks! Would you kindly consider creating links in the...
Let users search for NIDs?