Expands the list of used cache contexts for the view.
string $cache_context: The additional cache context.
$this
public function addCacheContext($cache_context) { $this->element['#cache']['contexts'][] = $cache_context; return $this; }