Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using Panelizer with Entitycache, Title module has a problem with setting the title in the correct language. See #2768857: Overwritten titles when using entitycache, panelizer and entity_translation modules for details. I believe the only way for Title module to solve this is to make sure that the entity title is always stored in the entity original language. For this we need a precache hook that allows us to make last modifications on the entity before saving it in the entitycache.
Proposed resolution
Provide hooks to change the entity just before and after caching it.
Comment | File | Size | Author |
---|---|---|---|
#2 | entitycache-hooks-2769781-2.patch | 2.15 KB | czigor |
|
Comments
Comment #2
czigor CreditAttribution: czigor at Liip for FREITAG lab. AG commentedComment #3
czigor CreditAttribution: czigor at Liip for FREITAG lab. AG commentedThis patch is used by the Title patch in #2768857: Overwritten titles when using entitycache, panelizer and entity_translation modules.
Comment #4
catchThis looks like a duplicate of #2044291: Add drupal_alter() to entityCacheGet & entityCacheSet & resetEntityCache?
Comment #5
czigor CreditAttribution: czigor at Liip for FREITAG lab. AG commentedHmmm looks like it. I'll add my post-alter hook in that issue then.