public function CasPropertyBag::hasAttribute in CAS 8
Same name and namespace in other branches
- 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\casCode
public function hasAttribute($name) {
return isset($this->attributes[$name]);
}