diff --git a/src/Feeds/Target/Paragraphs.php b/src/Feeds/Target/Paragraphs.php index e025ad8..e01ab36 100644 --- a/src/Feeds/Target/Paragraphs.php +++ b/src/Feeds/Target/Paragraphs.php @@ -104,18 +104,23 @@ class Paragraphs extends Text implements ConfigurableTargetInterface { * {@inheritdoc} */ public function getSummary() { - $summary = $this->t('Not yet configured.'); + $summary = parent::getSummary(); + $paragraphs_type_id = $this->configuration['paragraphs_type']; $paragraph_field_name = $this->configuration['paragraph_field']; if ($paragraphs_type_id && $paragraphs_type = $this->paragraphsTypeStorage->load($paragraphs_type_id)) { if ($paragraph_field_name && $paragraph_field = $this->fieldConfigStorage->load('paragraph.' . $paragraphs_type_id . '.' . $paragraph_field_name)) { - $summary = $this->t('Using the %field field on a %type paragraph.', [ + $summary[] = $this->t('Using the %field field on a %type paragraph.', [ '%field' => $paragraph_field->label(), '%type' => $paragraphs_type->label(), ]); } } - return $summary . '
' . parent::getSummary(); + else { + $summary[] = $this->t('Not yet configured.'); + } + + return $summary; } /**