Cover of the book Symfony 5: The Fast Track

Symfony 5: The Fast Track is the best book to learn modern Symfony development, from zero to production. +300 pages showcasing Symfony with Docker, APIs, queues & async tasks, Webpack, SPAs, etc.

14. Bootlint

3.x version

14. Bootlint

The admin comes with Bootlint integration since version 3.0. Bootlint is an HTML linter for Bootstrap projects.

You should use it when you want add some contributions on Sonata UI to check the eventual Twitter Bootstrap conventions’ mistakes.

14.1. Enable Bootlint

To use Bootlint in your admin, you can enable it in your config file:

  • YAML
    # config/packages/sonata_admin.yaml
            use_bootlint:    true # enable Bootlint

Then open your browser debugger to look after some Bootlint warnings on console.

No warning? Congrats! Your page is fully Bootstrap compliant! ;)

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.