- Issue created by @catch
Follow-up from π Attach Ajax dialog library for Views Entity Operations Fixed .
Only delete links use modals in core, however the dialog library is added on views operations links for users without access to delete content, or for entities without a delete operation.
To make this conditional, we'd need to provide a way for links passed to #theme links to declare #attached themselves, then the links would be responsible for declaring the libraries they depend on, and we wouldn't need the logic in EntityListBuilder or the views EntityOperations plugin.
It might be worth looking at allowing links to be render arrays instead of a raw (mostly undefined) link array - this would currently need to happen in template_preprocess_links().
Active
11.0 π₯
Last updated