Commit 035b15a3 authored by Rob Phillips's avatar Rob Phillips
Browse files

Issue #3306668 by robphillips: Set user cache context.

parent 75eed7da
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -118,4 +118,11 @@ class CurrentUserCondition extends ConditionPluginBase implements ContainerFacto
    return $this->t('The current page is the current authenticated users profile page');
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheContexts(): array {
    return array_merge(parent::getCacheContexts(), ['user']);
  }

}