Loading src/Plugin/Condition/CurrentUserCondition.php +7 −0 Original line number Diff line number Diff line Loading @@ -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']); } } Loading
src/Plugin/Condition/CurrentUserCondition.php +7 −0 Original line number Diff line number Diff line Loading @@ -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']); } }