Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm looking to add a form inside a custom template. The form, if I open the path registered inside the file cmodule.routing.yml, works but if i try to use it inside a custom template it doesn't work: with a dump(form) or dump(form.anyfield) i get NULL.
I have created a couple of Views. One is a slideshow and the other is an unordered list. Everything works as expected. However, I have, in the markup discovered that there are two divs that wrap the view. The first div, has a class of "views-element-container", which stems from the block.html.twig file. The second div comes from the field.html.twig file. Finally, I have the div containing the beginning of my Views.