Skip to content

Commit

Permalink
Early exit with disabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
bibliophileaxe committed May 9, 2024
1 parent e41f494 commit c89223f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IslandoraContextManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function evaluateContexts(array $provided = []) {
}
/** @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;
}
}
Expand Down

0 comments on commit c89223f

Please sign in to comment.