| 1 | <?php |
||
| 8 | class EntitySelectionEvent extends EventBase { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Entities being selected. |
||
| 12 | * |
||
| 13 | * @var \Drupal\Core\Entity\EntityInterface[] |
||
| 14 | */ |
||
| 15 | protected $entities; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructs a EntitySelectionEvent object. |
||
| 19 | * |
||
| 20 | * @param string $entity_browser_id |
||
| 21 | * Entity browser ID. |
||
| 22 | * @param string $instance_uuid |
||
| 23 | * Entity browser instance UUID. |
||
| 24 | * @param \Drupal\Core\Entity\EntityInterface[] $entities |
||
| 25 | * Array of selected entities. |
||
| 26 | */ |
||
| 27 | public function __construct($entity_browser_id, $instance_uuid, array $entities) { |
||
| 28 | parent::__construct($entity_browser_id, $instance_uuid); |
||
| 29 | $this->entities = $entities; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Gets selected entities. |
||
| 34 | * |
||
| 35 | * @return \Drupal\Core\Entity\EntityInterface[] |
||
| 36 | */ |
||
| 37 | public function getEntities() { |
||
| 40 | |||
| 41 | } |
||
| 42 |