You are here

public function AcceptHeader::has in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/AcceptHeader.php \Symfony\Component\HttpFoundation\AcceptHeader::has()

Tests if header has given value.

Parameters

string $value:

Return value

bool

File

vendor/symfony/http-foundation/AcceptHeader.php, line 82

Class

AcceptHeader
Represents an Accept-* header.

Namespace

Symfony\Component\HttpFoundation

Code

public function has($value) {
  return isset($this->items[$value]);
}