You are here

public function CasRedirectData::setServiceParameter in CAS 8

Same name and namespace in other branches
  1. 2.x src/CasRedirectData.php \Drupal\cas\CasRedirectData::setServiceParameter()

Set a service paramater.

Parameters

string $key: Service parameter to set.

mixed $value: Value of service parmaeter to set.

File

src/CasRedirectData.php, line 122

Class

CasRedirectData
Class CasRedirectData.

Namespace

Drupal\cas

Code

public function setServiceParameter($key, $value) {
  if (empty($value)) {
    unset($this->serviceParameters[$key]);
  }
  else {
    $this->serviceParameters[$key] = $value;
  }
}