public function EntitySelectionEvent::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Events/EntitySelectionEvent.php \Drupal\entity_browser\Events\EntitySelectionEvent::__construct()
Constructs a EntitySelectionEvent object.
Parameters
string $entity_browser_id: Entity browser ID.
string $instance_uuid: Entity browser instance UUID.
\Drupal\Core\Entity\EntityInterface[] $entities: Array of selected entities.
Overrides EventBase::__construct
File
- src/
Events/ EntitySelectionEvent.php, line 27
Class
- EntitySelectionEvent
- Represents entity selection as event.
Namespace
Drupal\entity_browser\EventsCode
public function __construct($entity_browser_id, $instance_uuid, array $entities) {
parent::__construct($entity_browser_id, $instance_uuid);
$this->entities = $entities;
}