diff --git a/core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php b/core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php index dd29b650f0..0b4c7a1532 100644 --- a/core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php +++ b/core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php @@ -267,6 +267,9 @@ public function isSatisfiedBy(ContextInterface $context) { if ($this->getDataType() != 'any' && $definition->getDataType() != $this->getDataType()) { return FALSE; } + if ($definition->getDataType() == 'entity:user' && $this->getDataType() == 'entity:user') { + return TRUE; + } $values = function () use ($context, $definition) { // Get the value for this context, either directly if possible