Get paragraph field in a specific text format I have a landing page with a list of paragraphs. I'm trying to render the main body paragraph field as a summary to use in a metatag in the header.
$basic_content_block-&gt;get('field_content')-&gt;first()-&gt;getValue();
Returns:
[
    'value' =&gt; &quot;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Some rich text here.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&quot;,
    'format' =&gt; &quot;basic_html&quot;
]

How can I return this field as a teaser view, or more appropriately, a summary of just the text?
$basic_content_block-&gt;get('field_content')-&gt;summary;

I believe that should do it.