Gets the Content-Type header value.
Source
private function getContentType(): ?string
{
$values = $this->getHeader('Content-Type');
return $values !== null ? $values[0] : null;
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.
User Contributed Notes
You must log in before being able to contribute a note or feedback.