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

Breadcrumb

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

function HeaderBag::has

Returns true if the HTTP header is defined.

1 call to HeaderBag::has()
ResponseHeaderBag::computeCacheControlValue in vendor/symfony/http-foundation/ResponseHeaderBag.php
Returns the calculated value of the cache-control header.

File

vendor/symfony/http-foundation/HeaderBag.php, line 158

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function has(string $key) : bool {
    return \array_key_exists(strtr($key, self::UPPER, self::LOWER), $this->all());
}

API Navigation

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