Saint - Cyr MAPOUKA
Saint - Cyr MAPOUKA

Reputation: 452

How to change the default bootstrap menu icon of sonata adminBundle

Is there a way to change the default bootstrap menu icon of sonata adminBundle in .yml config ?

Upvotes: 1

Views: 2282

Answers (1)

Valentas
Valentas

Reputation: 2175

Icons are described here:

sonata_admin:
    dashboard:
        groups:
            sonata.admin.group.ecommerce:
                label:           sonata_ecommerce
                label_catalogue: SonataAdminBundle
                icon:            '<i class="fa fa-dollar"></i>'
                items:
                    - sonata.customer.admin.customer
                    - sonata.invoice.admin.invoice
                    - sonata.order.admin.order
                    - sonata.product.admin.product

You can find example configuration with icons in Sonata Sandbox project.

Upvotes: 3

Related Questions