public function AcceptHeaderItem::getAttribute

Returns an attribute by its name.

Parameters

string $name:

mixed $default:

Return value

mixed

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/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;
}