You are here

public function CasRedirectData::setIsCacheable in CAS 2.x

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

Indicate that the redirect response is cacheable.

Parameters

bool $cacheable: TRUE to set the redirect as cacheable, FALSE otherwise.

File

src/CasRedirectData.php, line 160

Class

CasRedirectData
Provides tools to build the redirects.

Namespace

Drupal\cas

Code

public function setIsCacheable($cacheable) {
  if ($cacheable) {
    $this->isCacheable = TRUE;
  }
  else {
    $this->isCacheable = FALSE;
  }
}