Skip to content

Commit

Permalink
Merge pull request #551 from City-of-Helsinki/UHF-8006_remove_brandin…
Browse files Browse the repository at this point in the history
…g_navigation

UHF-8006: Removed branding navigation configuration and mentions from code
  • Loading branch information
teroelonen authored Aug 3, 2023
2 parents d9d437d + adc603b commit 7e25a55
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 45 deletions.
7 changes: 0 additions & 7 deletions modules/hdbt_admin_tools/hdbt_admin_tools.links.menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ hdbt_admin_tools.header_top_menu:
route_parameters: { menu: 'header-top-navigation' }
weight: 0

hdbt_admin_tools.header_branding_menu:
title: 'Header branding navigation menu links'
parent: hdbt_admin_tools.menus
route_name: entity.menu.edit_form
route_parameters: { menu: 'branding-navigation' }
weight: 1

hdbt_admin_tools.main_menu:
title: 'Main menu'
parent: hdbt_admin_tools.menus
Expand Down

This file was deleted.

12 changes: 12 additions & 0 deletions modules/helfi_base_content/helfi_base_content.install
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,15 @@ function helfi_base_content_update_9003() : void {
->set('selected_langcode', 'site_default')
->save();
}

/**
* Implements hook_install().
*/
function helfi_base_content_update_9004() : void {
$config_factory = Drupal::configFactory();

// Remove the branding navigation and blocks related to it.
$config_factory->getEditable('system.menu.branding-navigation')->delete();
$config_factory->getEditable('block.block.brandingnavigation')->delete();
$config_factory->getEditable('block.block.hdbt_subtheme_brandingnavigation')->delete();
}
30 changes: 0 additions & 30 deletions modules/helfi_base_content/helfi_base_content.module
Original file line number Diff line number Diff line change
Expand Up @@ -53,36 +53,6 @@ function helfi_base_content_themes_installed($theme_list) {
*/
function helfi_base_content_get_block_configurations(string $theme) : array {
return [
'brandingnavigation' => [
'block' => [
'id' => 'brandingnavigation',
'plugin' => 'menu_block_current_language:branding-navigation',
'provider' => 'helfi_base_content',
'settings' => [
'id' => 'menu_block_current_language:branding-navigation',
'label' => 'Branding - Navigation',
'depth' => 1,
'level' => 1,
'expand_all_items' => FALSE,
'translation_providers' => [
'views' => 'views',
'menu_link_content' => 'menu_link_content',
'default' => '0',
],
'provider' => 'helfi_base_content',
],
],
'variations' => [
[
'theme' => $theme,
'region' => 'header_branding',
],
[
'theme' => 'stark',
'region' => 'content',
],
],
],
'breadcrumbs' => [
'block' => [
'id' => 'breadcrumbs',
Expand Down
1 change: 0 additions & 1 deletion src/Menu/FilterByLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ final class FilterByLanguage implements EventSubscriberInterface {
* @var string[]
*/
protected array $menuNames = [
'branding-navigation',
'footer-bottom-navigation',
'footer-top-navigation',
'footer-top-navigation-2',
Expand Down

0 comments on commit 7e25a55

Please sign in to comment.