public function AcceptHeader::first in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/AcceptHeader.php \Symfony\Component\HttpFoundation\AcceptHeader::first()
Returns first item.
Return value
AcceptHeaderItem|null
File
- vendor/
symfony/ http-foundation/ AcceptHeader.php, line 145
Class
- AcceptHeader
- Represents an Accept-* header.
Namespace
Symfony\Component\HttpFoundationCode
public function first() {
$this
->sort();
return !empty($this->items) ? reset($this->items) : null;
}