ExtensionMimeTypeGuesser::__construct

public ExtensionMimeTypeGuesser::__construct(ModuleHandlerInterface $module_handler)

Constructs a new ExtensionMimeTypeGuesser.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php, line 882

Class

ExtensionMimeTypeGuesser
Makes possible to guess the MIME type of a file using its extension.

Namespace

Drupal\Core\File\MimeType

Code

public function __construct(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}
doc_Drupal
2016-10-29 09:09:47
Comments
Leave a Comment

Please login to continue.