You are here

public function EntityBrowserForm::__construct in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Form/EntityBrowserForm.php \Drupal\entity_browser\Form\EntityBrowserForm::__construct()

Constructs a EntityBrowserForm object.

Parameters

\Drupal\Component\Uuid\UuidInterface $uuid_generator: The UUID generator service.

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $selection_storage: Selection storage.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/Form/EntityBrowserForm.php, line 63

Class

EntityBrowserForm
The entity browser form.

Namespace

Drupal\entity_browser\Form

Code

public function __construct(UuidInterface $uuid_generator, KeyValueStoreExpirableInterface $selection_storage, RendererInterface $renderer, MessengerInterface $messenger) {
  $this->uuidGenerator = $uuid_generator;
  $this->selectionStorage = $selection_storage;
  $this->renderer = $renderer;
  $this->messenger = $messenger;
}