From 9c8193b75a79e90c59acbc13cfd322635f645fcc Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Thu, 24 Mar 2022 14:26:10 -0300 Subject: [PATCH] islandora:862 Incorporate PR review suggestion Co-authored-by: Jordan Dukart --- islandora.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/islandora.module b/islandora.module index dd8f363f..f81693d3 100644 --- a/islandora.module +++ b/islandora.module @@ -251,9 +251,9 @@ function islandora_jsonld_alter_normalized_array(EntityInterface $entity, array $reaction->execute($entity, $normalized, $context); foreach ($context_manager->getActiveContexts() as $context_config) { try { - if ($context_config->getReaction($reaction->getPluginId()) && isset($context['cacheability']) - && method_exists($context['cacheability'], 'addCacheTags')) { - $context['cacheability']->addCacheTags($context_config->getCacheTags()); + if ($context_config->getReaction($reaction->getPluginId()) && isset($context[CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY])) { + $context[CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY]->addCacheableDependency($context_config); + }; }; } catch (PluginNotFoundException $e) {