Problem/Motivation

In the link field plugin we are using whatever comes out from $this->getTargetEntity($field_item) and assuming it's an entity info, but in some cases it will not. (A link to the path "internal:/blog" for instance will return NULL there.

Proposed resolution

Check that what the link item is pointing to is really an entity before trying to use it.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2950659-2.patch1.6 KBmarcoscano

Comments

marcoscano created an issue. See original summary.

marcoscano’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB

  • marcoscano committed ff6ace1 on 8.x-1.x
    Issue #2950659 by marcoscano: Link field plugin doesn't properly filter...
marcoscano’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.