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