You are here

public function CasPropertyBag::hasAttribute in CAS 8

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

Checks whether an attribute exists.

Parameters

string $name: The name of the attribute.

Return value

bool TRUE if the attribute exists, FALSE otherwise.

1 call to CasPropertyBag::hasAttribute()
CasPropertyBag::getAttribute in src/CasPropertyBag.php
Returns a single attribute if exists.

File

src/CasPropertyBag.php, line 153

Class

CasPropertyBag
Class CasPropertyBag.

Namespace

Drupal\cas

Code

public function hasAttribute($name) {
  return isset($this->attributes[$name]);
}