diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItemBase.php b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItemBase.php index df9cea0..f57a46f 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItemBase.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItemBase.php @@ -79,7 +79,7 @@ public function prepareCache() { $itemBC = $this->getValue(); $langcode = $this->getParent()->getParent()->language()->id; $this->set('safe_value', text_sanitize($text_processing, $langcode, $itemBC, 'value')); - if ($this->getType() == 'field_item:text_with_summary') { + if ($this->getPluginId() == 'field_item:text_with_summary') { $this->set('safe_summary', text_sanitize($text_processing, $langcode, $itemBC, 'summary')); } }