Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AcceptHeader.php

function AcceptHeader::first

Returns first item.

File

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

Class

AcceptHeader
Represents an Accept-* header.

Namespace

Symfony\Component\HttpFoundation

Code

public function first() : ?AcceptHeaderItem {
    $this->sort();
    return $this->items ? reset($this->items) : null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal