You are here

public function CasRedirectData::setCacheContexts in CAS 2.x

Same name and namespace in other branches
  1. 8 src/CasRedirectData.php \Drupal\cas\CasRedirectData::setCacheContexts()

Set the cache contexts for the redirect response.

Parameters

array $cache_contexts: The cache contexts.

File

src/CasRedirectData.php, line 230

Class

CasRedirectData
Provides tools to build the redirects.

Namespace

Drupal\cas

Code

public function setCacheContexts(array $cache_contexts) {
  $this->cacheContexts = $cache_contexts;
}