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
Currently we override ChooseBlockController which is a internal class and that means we cannot make this module stable. Instead we should refactor and preprocess the links with hook_preprocess_links, and hopefully if #3032456: Allow easier altering of Layout Builder block configuration links lands we can make that a bit more simple.
Proposed resolution
- Do it!
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff_5-6.txt | 356 bytes | johnwebdev |
#6 | 3048169-6.patch | 5.34 KB | johnwebdev |
| |||
#5 | interdiff_3-5.txt | 946 bytes | johnwebdev |
#5 | 3048169-5.patch | 5.34 KB | johnwebdev |
| |||
#3 | 3048169-3.patch | 5.33 KB | johnwebdev |
|
Comments
Comment #2
johnwebdev CreditAttribution: johnwebdev commentedComment #3
johnwebdev CreditAttribution: johnwebdev commentedThis patch uses hook_link_alter() because the Create custom block in the listing is not a #links theme, but a single link.
Comment #4
johnzzonLooks good overall!
Can we maybe flip this if around and return early instead?
Now we're getting config and building the
$data_dialog_options
array in all cases even though it potentially might not get used.Comment #5
johnwebdev CreditAttribution: johnwebdev commentedComment #6
johnwebdev CreditAttribution: johnwebdev commentedComment #7
johnzzonBeautiful!
Comment #8
johnwebdev CreditAttribution: johnwebdev at Kodamera AB commentedComment #10
johnwebdev CreditAttribution: johnwebdev at Kodamera AB commentedCommitted, thanks!