You are here

public function AcceptHeader::get in Zircon Profile 8

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

Returns given value's item, if exists.

Parameters

string $value:

Return value

AcceptHeaderItem|null

File

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

Class

AcceptHeader
Represents an Accept-* header.

Namespace

Symfony\Component\HttpFoundation

Code

public function get($value) {
  return isset($this->items[$value]) ? $this->items[$value] : null;
}