The Drupal Form API (FAPI) #tree property is helpful and needed when using form containers like details, fieldset or others. Also it's helpful if you need to nest form values and also want to nest their results. On the othe hand it becomes
Drupal
Drupal Form API doesn't offer a native HTML type="reset" button known from the W3C: https://www.w3.org/TR/2012/WD-html-markup-20121025/input.reset.html So if you ever need one, this might be a good starting point in Drupal 8+: 'reset' => [
Knowing the old logics from Drupal 7, where you could place a "translations" folder into your custom modules, containing the language .po files, the situation is a bit different for Drupal 8+: You can find the related information (bit
As it sadly took me some time to find out and it's not very well documented, here's how you close a Drupal 8+ dialog (in this case the Off-Canvas) using JavaScript: Drupal.dialog(document.getElementById('drupal-off-canvas')).close(); You
Adding a captcha to a Drupal Commerce Checkout step isn't as simple as expected, as adding it via "Captcha points" shows the captcha on any Checkout step. So you need to add a little snippet in a custom module instead: /** * Implements hook
Dir hat dieser Beitrag Zeit und viele Nerven gespart?
Dann würde ich mich sehr über einen leckeren Kaffee freuen! Oder ein spannendes Tech-Buch aus meiner Wunschliste?