public function HeaderBag::getCacheControlDirective in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\HttpFoundationCode
public function getCacheControlDirective($key) {
return array_key_exists($key, $this->cacheControl) ? $this->cacheControl[$key] : null;
}