示例#1
0
 /**
  * {@inheritdoc}
  */
 public function getCacheContexts()
 {
     $contexts = parent::getCacheContexts();
     // The result potentially depends on term access and so is just cacheable
     // per user.
     // @todo See https://www.drupal.org/node/2352175.
     $contexts[] = 'user';
     return $contexts;
 }