Browse Source

Add check for cache tags in JSON-LD alter hook.

pull/862/head
Alexander O'Neill 3 years ago
parent
commit
7709425358
  1. 2
      islandora.module

2
islandora.module

@ -251,7 +251,7 @@ 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())) {
if ($context_config->getReaction($reaction->getPluginId()) && isset($context['cacheability'])) {
$context['cacheability']->addCacheTags($context_config->getCacheTags());
};
}

Loading…
Cancel
Save