function MimeTypeMapInterface::hasMimeType

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php \Drupal\Core\File\MimeType\MimeTypeMapInterface::hasMimeType()

Determines if a MIME type exists.

Parameters

string $mimetype: The mime type.

Return value

bool TRUE if the MIME type exists, FALSE otherwise.

File

core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php, line 73

Class

MimeTypeMapInterface
Provides an interface for MIME type to file extension mapping.

Namespace

Drupal\Core\File\MimeType

Code

public function hasMimeType(string $mimetype) : bool;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.