diff --git a/modules/oe_theme_list_pages/src/Plugin/PageHeaderMetadata/ListPageContentType.php b/modules/oe_theme_list_pages/src/Plugin/PageHeaderMetadata/ListPageContentType.php index b7b5f382f..6247bc953 100644 --- a/modules/oe_theme_list_pages/src/Plugin/PageHeaderMetadata/ListPageContentType.php +++ b/modules/oe_theme_list_pages/src/Plugin/PageHeaderMetadata/ListPageContentType.php @@ -26,34 +26,4 @@ public function applies(): bool { return $node && $node->bundle() === 'oe_list_page'; } - /** - * {@inheritdoc} - */ - public function getMetadata(): array { - $metadata = parent::getMetadata(); - - $node = $this->getNode(); - if ($node->get('oe_summary')->isEmpty()) { - return $metadata; - } - - $summary = $node->get('oe_summary')->first(); - $metadata['introduction'] = [ - // We strip the tags because the component expects only one paragraph of - // text and the field is using a text format which adds paragraph tags. - '#type' => 'inline_template', - '#template' => '{{ summary|render|striptags("")|raw }}', - '#context' => [ - 'summary' => [ - '#type' => 'processed_text', - '#text' => $summary->value, - '#format' => $summary->format, - '#langcode' => $summary->getLangcode(), - ], - ], - ]; - - return $metadata; - } - }