You are here

public function DisplayBase::selectionCompleted in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/DisplayBase.php \Drupal\entity_browser\DisplayBase::selectionCompleted()

Indicates completed selection.

Entity browser will call this function when selection is done. Display plugin is responsible for fetching selected entities and sending them to the initiating code.

Parameters

\Drupal\Core\Entity\EntityInterface[] $entities: Array of selected entities.

Overrides DisplayInterface::selectionCompleted

1 method overrides DisplayBase::selectionCompleted()
Standalone::selectionCompleted in src/Plugin/EntityBrowser/Display/Standalone.php
Indicates completed selection.

File

src/DisplayBase.php, line 177

Class

DisplayBase
Base implementation for display plugins.

Namespace

Drupal\entity_browser

Code

public function selectionCompleted(array $entities) {
  $this->entities = $entities;
  $this->eventDispatcher
    ->addListener(KernelEvents::RESPONSE, [
    $this,
    'propagateSelection',
  ]);
}