public function AcceptHeaderItem::getAttribute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/AcceptHeaderItem.php \Symfony\Component\HttpFoundation\AcceptHeaderItem::getAttribute()
 
Returns an attribute by its name.
Parameters
string $name:
mixed $default:
Return value
mixed
File
- vendor/
symfony/ http-foundation/ AcceptHeaderItem.php, line 193  
Class
- AcceptHeaderItem
 - Represents an Accept-* header item.
 
Namespace
Symfony\Component\HttpFoundationCode
public function getAttribute($name, $default = null) {
  return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
}