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
Right now the Visibility per language plugin does not provide a summary to display in the Paragraph widget.
Proposed resolution
Build the summary,
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff-3155150-8-11.txt | 2.34 KB | johnchque |
#11 | 3155150-visibility-summary-11.patch | 2.35 KB | johnchque |
| |||
#8 | interdiff-3155150-5-8.txt | 1.51 KB | johnchque |
#8 | 3155150-visibility-summary-8.patch | 1.11 KB | johnchque |
#5 | interdiff_2-5.txt | 798 bytes | Deepak Goyal |
Comments
Comment #2
johnchqueThis should work. :)
Comment #3
Berdirhide for/show for should be translatable strings.
we don't need a summary for the default setting, that doesn't add something useful.
Do he have some UI tests that we could easily extend with an assertion for this?
Comment #4
Deepak Goyal CreditAttribution: Deepak Goyal at Srijan | A Material+ Company for Drupal India Association commentedComment #5
Deepak Goyal CreditAttribution: Deepak Goyal at Srijan | A Material+ Company for Drupal India Association commentedHi @Berdir
Updated patch please review.
Comment #6
BerdirHm, looks like the test class renaming in paragraphs broke paragraphs_collection :-/
Lets fix that in a separate issue.
Also, I wasn't clear, but 'always' should be removed as well, not interested in that output either in the summary.
Comment #7
johnchqueWorking on this.
Comment #8
johnchqueUpdated the logic not to do some operations without having the right values set.
Comment #10
BerdirSo the existing tests seems to trigger a notice, which is great, because it means we already trigger this method and need to a) fix it and b) add an assert for the expected message.
Comment #11
johnchqueAdding tests and fixing the notice. :)
Comment #12
Berdirthat we have this extra container key in the stored settings is unfortunate, but hard to fix now.
Committed.