I created a sub theme of the bootstrap theme. In one of my twig-files I would like to extend a twig template from the parent like this:

{% extends '@bootstrap/menu/main--main.html.twig' %}

This doesn't work and I'm getting the message that main--main.html.twig is not defined.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.