I am trying do this. I have module with controller and form. I want render my form in specific place in twig template. Not only one template, but everywhere in my website. Earlier in Drupal 7 i easy do this with
But in Drupal 8 I have only empty form data. I try every manual here. But not working. For me is working only form in routes - so page defined in module.routing.yml show me form.
I need to put a file upload form in a block in Drupal 8.7.10. Everything was working great with my form as a standalone page but when I use the formBuilder to create a block for it, the form's submit handler stops receiving any files.
I've narrowed it down to the fact that Drupal is not adding the enctype attribute to the correct element. It's adding it to the container div within the block, not the form element. While testing this, I've found that all $form['#attributes'] go to that div instead of the form.
Gob.Ec is the official platform of Ecuador and serves as a catalyst for the simplification of government procedures in the country. Using Drupal's technology, more than 1000 editors from 107 institutions published 4304 procedures, 900 regulations and 200 web forms.