You are here

public function AcceptHeaderItem::getAttribute in Zircon Profile 8

Same name and namespace in other branches
  1. 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\HttpFoundation

Code

public function getAttribute($name, $default = null) {
  return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
}