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.
Building on the work of @samvel and @mdixoncm in https://www.drupal.org/node/1888102 I've created a patch for Paragraphs compatibility. It can almost certainly be neatened up as it shares a lot of similar code with their patch
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff_5-11.txt | 2.01 KB | mkindred |
#11 | linkchecker-support-paragraphs-2546090-11.patch | 1.6 KB | mkindred |
| |||
#6 | linkchecker-support_paragraphs-2546090-5.patch | 2.08 KB | Rudi Teschner |
|
Comments
Comment #2
versantus.nik CreditAttribution: versantus.nik as a volunteer and commentedComment #3
versantus.nik CreditAttribution: versantus.nik as a volunteer and commentedComment #4
Rudi Teschner CreditAttribution: Rudi Teschner commentedUsing this patch I get some array_flip errors:
After digging into it, I found out that it might be due to the configuration of my system. Since paragraphs field can have content i.e. in german language but not in english language, the previous patch adds null values to the array and that's the cause fo the errors.
So here's the patch that includes a check whether a value is actually set before adding it to the $paragraphs_ids array.
Comment #6
Rudi Teschner CreditAttribution: Rudi Teschner commentedComment #7
pvasener CreditAttribution: pvasener commentedhttps://www.drupal.org/files/issues/linkchecker-support_paragraphs-25460...
Works great on two sites using Paragraphs intensively. Thanks!
Comment #8
vinmassaro CreditAttribution: vinmassaro commentedComment #9
vinmassaro CreditAttribution: vinmassaro commented#6 working well, thanks!
Comment #10
bburgDoes the D8 version support paragraphs?
Comment #11
mkindred CreditAttribution: mkindred commented#6 works for me, as well. I fixed a few whitespace issues.
Comment #12
eiriksmWould love to see a test for this. Are you able to write a test for this, do you think?
Comment #13
mkindred CreditAttribution: mkindred commentedI've never written tests. I did delve into the simpletest tutorial yesterday, and if I get far enough with it, I'll give a go.