You are here

public static function BynderSearch::create in Bynder 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/EntityBrowser/Widget/BynderSearch.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderSearch::create()

Overrides BynderWidgetBase::create

File

src/Plugin/EntityBrowser/Widget/BynderSearch.php, line 153

Class

BynderSearch
Uses a Bynder API to search and provide entity listing in a browser's widget.

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('current_user'), $container
    ->get('url_generator'), $container
    ->get('logger.factory'), $container
    ->get('language_manager'), $container
    ->get('request_stack'), $container
    ->get('entity.query'), $container
    ->get('config.factory'), $container
    ->get('cache.data'), $container
    ->get('datetime.time'), $container
    ->get('module_handler'));
}