function HeaderBag::hasCacheControlDirective
Returns true if the Cache-Control directive is defined.
1 method overrides HeaderBag::hasCacheControlDirective()
- ResponseHeaderBag::hasCacheControlDirective in vendor/
symfony/ http-foundation/ ResponseHeaderBag.php - Returns true if the Cache-Control directive is defined.
File
-
vendor/
symfony/ http-foundation/ HeaderBag.php, line 216
Class
- HeaderBag
- HeaderBag is a container for HTTP headers.
Namespace
Symfony\Component\HttpFoundationCode
public function hasCacheControlDirective(string $key) : bool {
return \array_key_exists($key, $this->cacheControl);
}