You are here

public function CasPropertyBag::hasAttribute in CAS 2.x

Same name and namespace in other branches
  1. 8 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
Data model for CAS property bag.

Namespace

Drupal\cas

Code

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