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

Breadcrumb

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

function HeaderBag::parseCacheControl

Parses a Cache-Control HTTP header.

2 calls to HeaderBag::parseCacheControl()
HeaderBag::set in vendor/symfony/http-foundation/HeaderBag.php
Sets a header by name.
ResponseHeaderBag::set in vendor/symfony/http-foundation/ResponseHeaderBag.php
Sets a header by name.

File

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

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

protected function parseCacheControl(string $header) : array {
    $parts = HeaderUtils::split($header, ',=');
    return HeaderUtils::combine($parts);
}

API Navigation

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