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.
Problem/Motivation
Each plugin gets an instance with \Drupal::database(). It would be good to inject this into the plugin base for ease of use for future plugin types as well.
Blocked behind #2684771: Update LinkGeneratorInterface to enforce what link generators need to provide..
Proposed resolution
Inject it.
Remaining tasks
Patch.
User interface changes
None.
API changes
Added protected properties for future link providers.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2684781-injected-database-3.patch | 3.92 KB | Sam152 |
Comments
Comment #2
gbyte CreditAttribution: gbyte as a volunteer and commentedHey Sam, I can tell you have a plan. ;)
I fixed that blocking issue so you can have a go at this.
Comment #3
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #4
gbyte CreditAttribution: gbyte as a volunteer and commentedPushed to 2.x unchanged. Thanks!