You are here

public static function Acquiadam::create in Media: Acquia DAM 8

Same name in this branch
  1. 8 src/Acquiadam.php \Drupal\media_acquiadam\Acquiadam::create()
  2. 8 src/Plugin/EntityBrowser/Widget/Acquiadam.php \Drupal\media_acquiadam\Plugin\EntityBrowser\Widget\Acquiadam::create()

File

src/Plugin/EntityBrowser/Widget/Acquiadam.php, line 116

Class

Acquiadam
Uses a view to provide entity listing in a browser's widget.

Namespace

Drupal\media_acquiadam\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('entity_field.manager'), $container
    ->get('plugin.manager.entity_browser.widget_validation'), $container
    ->get('media_acquiadam.acquiadam_user_creds'), $container
    ->get('current_user'), $container
    ->get('language_manager'), $container
    ->get('module_handler'), $container
    ->get('plugin.manager.media.source'), $container
    ->get('user.data'), $container
    ->get('request_stack'), $container
    ->get('config.factory'));
}