Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291783

Error when saving a denormalized entity with text fields with "processed" property

$
0
0

When I try to save an entity after denormalization I get this error: Call to a member function getProcessedText() on string in core/modules/text/src/TextProcessed.php line 43. This happens because denormalized entity has the ''processed" property as a string eg. <p>Lorem Ipsum.</p>, not as FilterProcessResult object.

The issue seems to be a followup for #2626924: Include processed text in normalizations: "text" field type's "processed" computed property should be non-internal and carry cacheability metadata.

I've found this issue while working on making Relaxed module compatible with Drupal 8.5.x and this is the last blocker.

Attached a failing test and also a fix.


Viewing all articles
Browse latest Browse all 291783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>