You are here

public static function BynderUpload::create in Bynder 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::create()
  2. 8.2 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::create()
  3. 4.0.x src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::create()

Overrides BynderWidgetBase::create

File

src/Plugin/EntityBrowser/Widget/BynderUpload.php, line 90

Class

BynderUpload
Uses upload to create media entities.

Namespace

Drupal\bynder\Plugin\EntityBrowser\Widget

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('event_dispatcher'), $container
    ->get('entity_type.manager'), $container
    ->get('plugin.manager.entity_browser.widget_validation'), $container
    ->get('bynder_api'), $container
    ->get('config.factory'), $container
    ->get('logger.factory'), $container
    ->get('session'), $container
    ->get('language_manager'), $container
    ->get('request_stack'));
}