You are here

public function SelectForm::__construct in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/SelectForm.php \Drupal\entity_browser\Plugin\views\field\SelectForm::__construct()

EntityBrowser constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin id.

mixed $plugin_definition: The plugin definition.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $selection_storage: The selection storage.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/SelectForm.php, line 49

Class

SelectForm
Defines a bulk operation form element that works with entity browser.

Namespace

Drupal\entity_browser\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RequestStack $request_stack, KeyValueStoreExpirableInterface $selection_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentRequest = $request_stack
    ->getCurrentRequest();
  $this->selectionStorage = $selection_storage;
}