- Issue created by @Marty2081
- 🇳🇱Netherlands Marty2081
And here is a patch we use to circumvent this problem (maybe someone with proper JS skills has a nicer solution, but this works for us).
- Status changed to Needs review
2 months ago 11:04am 11 September 2024 - 🇩🇪Germany sunlix Wesel
Hey marty2081,
thank you for this hint. I think this only applies for
1.x.
In
2.x
you can use ahook_preprocess_block()
to alter thedrupalSettings
// OpenReadspeakerBlock.php '#attached' => [ 'library' => $library, 'drupalSettings' => [ 'open_readspeaker' => ['rsConf' => $config->get('rsConf')] ] ]
In
1.x
you could also use the libraries-extend / libraries-override mechanic described here: Overriding and extending libraries → - 🇩🇪Germany sunlix Wesel
I close this issue due to the stable release of
2.0.0
right now.The migration path is there for the Drupal internals except the need of checking the used template.