You are here

public static function EntityFormProxy::create in Lightning Media 8

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

File

src/Plugin/EntityBrowser/Widget/EntityFormProxy.php, line 52

Class

EntityFormProxy
Base class for EB widgets which wrap around an (inline) entity form.

Namespace

Drupal\lightning_media\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('lightning.media_helper'));
}