diff --git a/core/lib/Drupal/Core/Condition/ConditionPluginBase.php b/core/lib/Drupal/Core/Condition/ConditionPluginBase.php index 196d398..a3a3638 100644 --- a/core/lib/Drupal/Core/Condition/ConditionPluginBase.php +++ b/core/lib/Drupal/Core/Condition/ConditionPluginBase.php @@ -80,7 +80,7 @@ public static function create(ContainerInterface $container, array $configuratio * access self::$contextRepository directly instead. */ protected function getContextRepository() { - if (!$this->contextHandler()) { + if (!$this->contextRepository) { $this->contextRepository = \Drupal::service('context.repository'); }