Problem/Motivation
EntityFieldRenderer has $this->entityManager = $entity_manager; where entity manager has ContainerAwareTrait but not DependencySerializationTrait. Most of the time this doesn't blow up because PluginBase has DependencySerializationTrait but EntityFieldRenderer is not a plugin.
Proposed resolution
Add DST to EFR.
Remaining tasks
Maybe test this. Very complicated: it's possble this only breaks with searchapi. Not sure. I am having a form where upon rebuild a view is inserted into the form and this blows up. Also, I put $view->render() in a form instead of #type view, #type view does not blow up. Is it worth the bothering to test?
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | efr_broken.patch | 764 bytes | chx |
| efr_broken.patch | 764 bytes | chx |
Comments
Comment #2
chx commentedComment #3
dawehnerYeah that class is neither a service NOR a plugin, which is problematic of course.
Comment #4
chx commentedComment #5
chx commentedComment #8
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!
I also don't think test coverage is particularly helpful here.