You are here

public function ResponseHeaderBag::getCacheControlDirective in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/ResponseHeaderBag.php \Symfony\Component\HttpFoundation\ResponseHeaderBag::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

Overrides HeaderBag::getCacheControlDirective

File

vendor/symfony/http-foundation/ResponseHeaderBag.php, line 140

Class

ResponseHeaderBag
ResponseHeaderBag is a container for Response HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

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