You are here

public static function SelectionTrait::create in Drupal 8

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionTrait.php, line 65

Class

SelectionTrait
Provides common methods and injects services for core selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity.manager'), $container
    ->get('module_handler'), $container
    ->get('current_user'));
}