Move invalidator code like \Drupal\cache_tools\Service\CacheSanitizer::invalidatePublishedEntity() to a new service, CacheTagInvalidator() which has utility methods that are called by the hooks. For backward compatibility just call the new service method in CacheSanitizer::invalidatePublishedEntity() and mark it deprecated.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | cache-invalidator-service-3049065-3.patch | 22.44 KB | aludescher |
| #2 | cache-invalidator-service-3049065-2.patch | 13.79 KB | aludescher |
Comments
Comment #2
aludescher commentedComment #3
aludescher commentedComment #5
fagoGood cleanup with BC, thanks! Committed.
Comment #6
fago