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' => [
Snippets
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
In the COOKiES Drupal 8+ module , we had the issue that config entity string translations were not possible with text > 128 characters length : https://www.drupal.org/project/cookies/issues/3327045 The reason for that is in core. Form API
I needed to get the node menu item title to display instead of the node title in a specific case and didn't find a quick solution, so I'd like to share it with you: Wondering how to get the nodes representing menu item? $nid = 12345; $node
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?