You are here

public function SelectEntitiesCommand::__construct in Entity Browser 8.2

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

Constructs a \Drupal\entity_browser\Ajax\SelectEntities object.

Parameters

string $uuid: Entity browser instance UUID.

array $entities: Entities that were selected. Each entity is represented with an array consisting of three values (entity ID, entity UUID and entity type).

File

src/Ajax/SelectEntitiesCommand.php, line 36

Class

SelectEntitiesCommand
AJAX command to rerender a formatted text field without any transformation filters.

Namespace

Drupal\entity_browser\Ajax

Code

public function __construct($uuid, $entities) {
  $this->uuid = $uuid;
  $this->entities = $entities;
}