You are here

public function CasRedirectData::setIsCacheable in CAS 8

Same name and namespace in other branches
  1. 2.x 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
Class CasRedirectData.

Namespace

Drupal\cas

Code

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