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

Breadcrumb

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

function HeaderBag::getCacheControlHeader

3 calls to HeaderBag::getCacheControlHeader()
HeaderBag::addCacheControlDirective in vendor/symfony/http-foundation/HeaderBag.php
Adds a custom Cache-Control directive.
HeaderBag::removeCacheControlDirective in vendor/symfony/http-foundation/HeaderBag.php
Removes a Cache-Control directive.
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 257

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

protected function getCacheControlHeader() : string {
    ksort($this->cacheControl);
    return HeaderUtils::toString($this->cacheControl, ',');
}

API Navigation

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