Symfony\Component\HttpFoundation\Request::getFormat
Gets the format associated with the mime type.
Signature
public function getFormat(string
$mimeType )
Parameters
$mimeType
— string- The associated mime type
Returns
- string|null
- The format (null if not found)