Should you run into the situation where you need to reset the module config to the installation state (for what ever reasons), then this snippet might help you: \Drupal::service('config.installer')->installDefaultConfig('module', $module)
Drupal
Do you see one of the following errors in your Drupal 8+ Status Report? Mismatched entity and/or field definitions The XXX field needs to be updated. The XXX field needs to be uninstalled. This is caused by mismatch in the field (storage)
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
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?