You are here

protected function MediaEntityDropzoneJsEbWidget::getBundle in DropzoneJS 8

Returns the media bundle that this widget creates.

Return value

\Drupal\media_entity\MediaBundleInterface Media bundle.

3 calls to MediaEntityDropzoneJsEbWidget::getBundle()
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::prepareEntities in modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php

File

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

Class

MediaEntityDropzoneJsEbWidget
Provides an Entity Browser widget that uploads uploads media entities.

Namespace

Drupal\dropzonejs_eb_widget\Plugin\EntityBrowser\Widget

Code

protected function getBundle() {
  return $this->entityTypeManager
    ->getStorage('media_bundle')
    ->load($this->configuration['media_entity_bundle']);
}