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

Breadcrumb

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

function AcceptHeaderItem::__toString

Returns header value's string representation.

File

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

Class

AcceptHeaderItem
Represents an Accept-* header item.

Namespace

Symfony\Component\HttpFoundation

Code

public function __toString() : string {
    $string = $this->value . ($this->quality < 1 ? ';q=' . $this->quality : '');
    if (\count($this->attributes) > 0) {
        $string .= '; ' . HeaderUtils::toString($this->attributes, ';');
    }
    return $string;
}

API Navigation

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