diff -u b/src/Entity/Paragraph.php b/src/Entity/Paragraph.php --- b/src/Entity/Paragraph.php +++ b/src/Entity/Paragraph.php @@ -478,12 +478,12 @@ if ($field_definition->getType() == 'link') { if (!empty($this->get($field_name)->first())) { - // If no title is set, fallback to the uri. - if ($title = $this->get($field_name)->first()->getProperties()['title']->getValue()) { + // If title is not set, fallback to the uri. + if ($title = $this->get($field_name)->title) { $summary[] = $title; } else { - $summary[] = $this->get($field_name)->first()->get('uri')->getValue(); + $summary[] = $this->get($field_name)->uri; } } }