function SelectionTrait::create

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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.