You are here

public static function WebformAttachmentInterface::getFileMimeType in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_attachment/src/Element/WebformAttachmentInterface.php \Drupal\webform_attachment\Element\WebformAttachmentInterface::getFileMimeType()

Get a webform attachment's file type.

Parameters

array $element: The webform attachment element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

Return value

mixed|string The attachment's file type.

1 method overrides WebformAttachmentInterface::getFileMimeType()
WebformAttachmentBase::getFileMimeType in modules/webform_attachment/src/Element/WebformAttachmentBase.php
Get a webform attachment's file type.

File

modules/webform_attachment/src/Element/WebformAttachmentInterface.php, line 49

Class

WebformAttachmentInterface
Provides an interface for webform attachment elements.

Namespace

Drupal\webform_attachment\Element

Code

public static function getFileMimeType(array $element, WebformSubmissionInterface $webform_submission);