Problem/Motivation
In Drupal 6 or in Drupal 7, a block which has its title set to '<none>'
is rendered without its label displayed, similarly to an empty label. But right now, this behaviour isn't reflected in block configuration migration: blocks with label '<none>'
are migrated with $settings['label_display'] = BlockPluginInterface::BLOCK_LABEL_VISIBLE;
.
See:
- Drupal 6
block.module
; block template of the default theme. - Drupal 7
block.module
; block template of the default theme.
Proposed resolution
Modify the block_settings
migrate process plugin to migrate block configs with title '<none>'
with non-displayed block title.
Remaining tasks
PatchTest coverage
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#11 | 3191490-11.patch | 2.83 KB | quietone |
#11 | 3191490-11-fail.patch | 2.16 KB | quietone |
Issue fork drupal-3191490
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
huzookaLet's see what breaks.
Comment #4
huzookaComment #5
Wim LeersCode looks good, now just needs tests — nice catch! 👍
Comment #7
Wim LeersBeautiful, thank you @quietone!
→ double period at the end.
I tried fixing it via the GitLab Web IDE but it wouldn't allow me 🙈
Comment #8
quietone CreditAttribution: quietone as a volunteer commentedThe change since RTBC was to change '..' to '.' in a doc bloc and tests are still passing so leaving at RTBC.
Comment #9
huzookaComment #10
Wim LeersMight be good to upload a failing test-only patch. I don't think that's possible to do with a merge request?
Comment #11
quietone CreditAttribution: quietone as a volunteer commentedAdding fail patch and re-uploading the success patch so that will get tested every 2 days.
Comment #13
huzookaThis deserves getting back the RTBC status.
Comment #15
huzookaRandom test failure of
Drupal\Tests\layout_builder\FunctionalJavascript\LayoutBuilderQuickEditTest
.See https://www.drupal.org/pift-ci-job/1951161
Comment #18
catchCommitted/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!