You are here

public function AcceptHeaderItem::hasAttribute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/AcceptHeaderItem.php \Symfony\Component\HttpFoundation\AcceptHeaderItem::hasAttribute()

Tests if an attribute exists.

Parameters

string $name:

Return value

bool

File

vendor/symfony/http-foundation/AcceptHeaderItem.php, line 180

Class

AcceptHeaderItem
Represents an Accept-* header item.

Namespace

Symfony\Component\HttpFoundation

Code

public function hasAttribute($name) {
  return isset($this->attributes[$name]);
}