public function HeaderBag::hasCacheControlDirective in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/HeaderBag.php \Symfony\Component\HttpFoundation\HeaderBag::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
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 239
Class
- HeaderBag
- HeaderBag is a container for HTTP headers.
Namespace
Symfony\Component\HttpFoundationCode
public function hasCacheControlDirective($key) {
return array_key_exists($key, $this->cacheControl);
}