You are here

public function ResponseHeaderBag::hasCacheControlDirective in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/ResponseHeaderBag.php \Symfony\Component\HttpFoundation\ResponseHeaderBag::hasCacheControlDirective()

Returns true if the Cache-Control directive is defined.

Parameters

string $key The Cache-Control directive:

Return value

bool true if the directive exists, false otherwise

Overrides HeaderBag::hasCacheControlDirective

File

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

Class

ResponseHeaderBag
ResponseHeaderBag is a container for Response HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function hasCacheControlDirective($key) {
  return array_key_exists($key, $this->computedCacheControl);
}