- Issue created by @longwave
In
📌
Create extendibility proof of concept that also serves as documentation-by-example
Active
we added the capability for modules to extend Experience Builder. To add custom JavaScript they need to declare a library and set drupalSettings.xbExtension
. Because library discovery is scoped by module there is no easy way for XB to consider alter its own libraries while considering other module libraries.
The chosen solution parses library YAML directly which means that libraries added via hook_library_info_build()</ code> or altered by <code>hook_library_info_alter()
may not be detected or processed correctly.
Unsure at present. Perhaps try to reuse the libraries-extend
mechanism that is currently only available to themes? This provides similar functionality, allowing the active theme to add additional dependencies to existing libraries, but this is currently not available to modules.
Active
0.0
Extensions API