Reusing Parts of a Built-In Form Theme
Finally, you can also use the Twig parent() function to reuse the original content of the built-in theme. This is useful when you only want to make minor changes, such as wrapping the generated HTML with some element:{% use 'form_div_layout.html.twig' %} {% block integer_widget %} <div class="some-custom-class"> {{ parent() }} </div> {% endblock %}