You are here

public function HeaderBag::getCacheControlDirective in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/HeaderBag.php \Symfony\Component\HttpFoundation\HeaderBag::getCacheControlDirective()

Returns a Cache-Control directive value by name.

Parameters

string $key The directive name:

Return value

mixed|null The directive value if defined, null otherwise

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 251

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

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