You are here

protected function MediaEntityDropzoneJsEbWidget::getType in DropzoneJS 8.2

Returns the media type that this widget creates.

Return value

\Drupal\media\MediaTypeInterface Media type.

4 calls to MediaEntityDropzoneJsEbWidget::getType()
MediaEntityDropzoneJsEbWidget::buildConfigurationForm in modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php
MediaEntityDropzoneJsEbWidget::calculateDependencies in modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php
MediaEntityDropzoneJsEbWidget::handleWidgetContext in modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php
MediaEntityDropzoneJsEbWidget::prepareEntities in modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php

File

modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php, line 69

Class

MediaEntityDropzoneJsEbWidget
Provides an Entity Browser widget that uploads media entities.

Namespace

Drupal\dropzonejs_eb_widget\Plugin\EntityBrowser\Widget

Code

protected function getType() {
  return $this->entityTypeManager
    ->getStorage('media_type')
    ->load($this->configuration['media_type']);
}