You are here

public static function BynderWidgetBase::create in Bynder 8

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.2 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::create()
  3. 4.0.x src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::create()
2 methods override BynderWidgetBase::create()
BynderSearch::create in src/Plugin/EntityBrowser/Widget/BynderSearch.php
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'));
}