You are here

public static function BynderWidgetBase::create in Bynder 4.0.x

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

File

src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php, line 100

Class

BynderWidgetBase
Base class for Bynder Entity browser widgets.

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('logger.factory'), $container
    ->get('language_manager'), $container
    ->get('request_stack'), $container
    ->get('config.factory'));
}