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

KeyTypeDefaultPurpose
titlestringAdminLTEDefault <title> and topbar brand text.
title_shortstringALTEBrand text shown when the sidebar is collapsed.
color_modeenumautolight | dark | auto (follows the OS).
dashboard_routestring|nullnullRoute used by the sidebar brand link.
logo.textstring<b>Admin</b>LTEHTML brand text (rendered as markup).
logo.imagestring|nullnullPath/URL to a logo image.
logo.altstringAdminLTE LogoAlt text for the logo image.
layout.fixed_sidebarbooltrueAdds layout-fixed to <body>.
layout.fixed_footerboolfalseAdds layout-footer-fixed.
layout.sidebar_minibooltrueEnables the mini (icon-only) collapsed sidebar.
layout.sidebar_collapsedboolfalseStarts the sidebar collapsed (sidebar-collapse).
layout.boxedboolfalseAdds layout-boxed.
topbar.enabledbooltrueRender the topbar.
topbar.searchbooltrueShow the topbar search.
topbar.fullscreen_togglebooltrueShow the fullscreen toggle.
footer.enabledbooltrueRender the footer.
footer.copyrightstring|nullnullFooter copyright line.
footer.textstring|nullnullExtra footer text.
footer.versionstring|nullnullVersion label shown in the footer.
menuarray[]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