Browse Source

Early exit with disabled check

pull/1019/head
Akanksha 11 months ago
parent
commit
c89223fe6d
  1. 2
      src/IslandoraContextManager.php

2
src/IslandoraContextManager.php

@ -37,7 +37,7 @@ class IslandoraContextManager extends ContextManager {
}
/** @var \Drupal\context\ContextInterface $context */
foreach ($this->getContexts() as $context) {
if ($this->evaluateContextConditions($context, $provided) && !$context->disabled()) {
if (!$context->disabled() && $this->evaluateContextConditions($context, $provided)) {
$this->activeContexts[$context->id()] = $context;
}
}

Loading…
Cancel
Save