You are here

public function FileTypeInterface::setMimeTypes in File Entity (fieldable files) 8.2

Set the MIME types associated with this file type.

Parameters

string[] $mimetypes: An indexed array of MIME types that should be associated with this file type.

1 method overrides FileTypeInterface::setMimeTypes()
FileType::setMimeTypes in src/Entity/FileType.php
Set the MIME types associated with this file type.

File

src/FileTypeInterface.php, line 50

Class

FileTypeInterface
File type entity interface.

Namespace

Drupal\file_entity

Code

public function setMimeTypes($mimetypes);