Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A module that wants to provide a different behavior and representation for contextual links will have a performance impact, because the JS/CSS cannot be altered once.
Just make it a library and the issue is resolved.
I already had this in mind when doing the original implementation, but somehow, I forgot.
Comment | File | Size | Author |
---|---|---|---|
drupal.contextual-links-library.patch | 1.2 KB | sun | |
Comments
Comment #1
RobLoachSimple and elegant. Like sun said, having this allows contrib modules to change how the contextual links look/work.
Comment #2
sunI want this to get in before doing #626286: Make contextual links a module
Comment #3
Bojhan CreditAttribution: Bojhan commentedHow can you forget? Jeez :'D
Comment #4
webchickMakes sense to me.
Committed to HEAD.