Symfony\Component\HttpFoundation\Request::getContentType
Gets the format associated with the request.
Signature
public function getContentType()
Returns
- string|null
- The format (null if no content type is present)
public function getContentType()