Commit 9e64f885 authored by catch's avatar catch
Browse files

fix: #3621157 Admin theme should override top-bar.html.twig directly

By: f0ns
By: kentr
By: angel_devoeted
By: quietone
(cherry picked from commit 096c6ad2)
parent ffdf7130
Loading
Loading
Loading
Loading
Loading
−8
Changes for core/themes/default_admin/src/Hook/ThemeSuggestionHooks.php: 0 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -105,14 +105,6 @@ public function themeSuggestionsTableAlter(array &$suggestions, array $variables
    }
  }

  /**
   * Implements hook_theme_suggestions_HOOK_alter() for top_bar.
   */
  #[Hook('theme_suggestions_top_bar_alter')]
  public function themeSuggestionsTopBarAlter(array &$suggestions): void {
    $suggestions[] = 'top_bar__default_admin';
  }

  /**
   * Implements hook_theme_suggestions_HOOK_alter() for views_view_field.
   */
+6
Changes for core/themes/default_admin/templates/navigation/top-bar.html.twig: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,13 @@
 * Default theme implementation for the navigation top bar.
 *
 * Available variables:
 * - tools: The tools region of the top bar.
 * - context: The context region of the top bar.
 * - actions: The actions region of the top bar.
 * - local_tasks: The local tasks for the current route.
 * - default_admin_breadcrumbs: The rendered breadcrumb block.
 * - default_admin_local_actions: The rendered local actions block.
 * - default_admin_form_actions: The rendered sticky form actions.
 *
 * @ingroup themeable
 */