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