Hot answers tagged

1

try to print it this way it gives you more control : <div id="candidature_spontanee" class="form-contact candidature_spontanee"> {# 1.use the attribute to set the form action and other attributes #} <form{{ attributes }}> {{ title_prefix }} {{ title_suffix }} {# 2.print the form elment using : {{ element.elements.key }} #} <div ...


1

Based on @Jaypan answer and @FLY comment I made a FieldWidget. This indeed removed the need for the hook_managed_file_process and hook_element_info_alter. This also made it possible to use the widget on a per field basis. First make your custom FieldWidget in [MODULE]/src/Plugin/Field/FieldWidget: namespace Drupal\[MODULE]\Plugin\Field\FieldWidget; use ...


Only top voted, non community-wiki answers of a minimum length are eligible