Configuration
Configure the bundle in config/packages/admin_lte.yaml. Symfony underscores the bundle name, so the root config key is admin_lte.
A complete example
admin_lte:
title: 'My Admin'
title_short: 'MA'
color_mode: auto # light | dark | auto
dashboard_route: app_dashboard
logo:
text: '<b>My</b>Admin'
image: '/build/logo.png' # optional path/URL
alt: 'My Admin Logo'
layout:
fixed_sidebar: true
fixed_footer: false
sidebar_mini: true
sidebar_collapsed: false
boxed: false
topbar:
enabled: true
search: true
fullscreen_toggle: true
footer:
enabled: true
copyright: '© 2026 My Company'
text: null
version: 'v1.0.0'
menu:
- { label: 'Dashboard', route: 'app_dashboard', icon: 'bi bi-speedometer2' }
The config tree
| Key | Type | Default | Purpose |
|---|---|---|---|
title | string | AdminLTE | Default <title> and topbar brand text. |
title_short | string | ALTE | Brand text shown when the sidebar is collapsed. |
color_mode | enum | auto | light | dark | auto (follows the OS). |
dashboard_route | string|null | null | Route used by the sidebar brand link. |
logo.text | string | <b>Admin</b>LTE | HTML brand text (rendered as markup). |
logo.image | string|null | null | Path/URL to a logo image. |
logo.alt | string | AdminLTE Logo | Alt text for the logo image. |
layout.fixed_sidebar | bool | true | Adds layout-fixed to <body>. |
layout.fixed_footer | bool | false | Adds layout-footer-fixed. |
layout.sidebar_mini | bool | true | Enables the mini (icon-only) collapsed sidebar. |
layout.sidebar_collapsed | bool | false | Starts the sidebar collapsed (sidebar-collapse). |
layout.boxed | bool | false | Adds layout-boxed. |
topbar.enabled | bool | true | Render the topbar. |
topbar.search | bool | true | Show the topbar search. |
topbar.fullscreen_toggle | bool | true | Show the fullscreen toggle. |
footer.enabled | bool | true | Render the footer. |
footer.copyright | string|null | null | Footer copyright line. |
footer.text | string|null | null | Extra footer text. |
footer.version | string|null | null | Version label shown in the footer. |
menu | array | [] | Config-driven sidebar — see Menu & Sidebar. |
Using the config in Twig
The resolved configuration is exposed as the adminlte Twig global, backed by the read-only AdminLteConfig accessor:
{{ adminlte.title }}
{{ adminlte.colorMode }}
{{ adminlte.bodyClass }} {# e.g. "sidebar-expand-lg bg-body-tertiary layout-fixed" #}
logo.text is rendered as raw HTML, so you can use tags like <b> for the two-tone AdminLTE brand effect.
AdminLTE 4 · Symfony port
Edit on GitHub