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

Breadcrumb

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

function HeaderBag::getCacheControlDirective

Returns a Cache-Control directive value by name.

1 method overrides HeaderBag::getCacheControlDirective()
ResponseHeaderBag::getCacheControlDirective in vendor/symfony/http-foundation/ResponseHeaderBag.php
Returns a Cache-Control directive value by name.

File

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

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function getCacheControlDirective(string $key) : bool|string|null {
    return $this->cacheControl[$key] ?? null;
}

API Navigation

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