Handle nested paragraphs in 'Page entity label' Views field

Created on 12 May 2020, over 4 years ago
Updated 9 January 2024, 11 months ago

The 'Page entity label' Views field conveniently checks the type of the entity containing the link and if it's a paragraph, displays the label of the paragraph's parent, and also links to it if there is a canonical link.

Unfortunately this doesn't handle nested paragraphs - e.g. a paragraph within a paragraphs field (e.g. some kind of container/layout paragraph). Patch attached continues getting paragraph parents while they're available, until the root parent is obtained (which will usually be of a type with a canonical link).

💬 Support request
Status

Needs review

Version

1.0

Component

Code

Created by

🇨🇦Canada bgilhome Victoria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany kle

    PLEASE PLEASE
    add this small change to LinkcheckerLinkPageEntityLabel.php

    even in the Drupal-10 Version
    ########################

Production build 0.71.5 2024