function UpdateSelectionCommand::__construct
Same name in other branches
- 9 core/modules/media_library/src/Ajax/UpdateSelectionCommand.php \Drupal\media_library\Ajax\UpdateSelectionCommand::__construct()
- 8.9.x core/modules/media_library/src/Ajax/UpdateSelectionCommand.php \Drupal\media_library\Ajax\UpdateSelectionCommand::__construct()
- 10 core/modules/media_library/src/Ajax/UpdateSelectionCommand.php \Drupal\media_library\Ajax\UpdateSelectionCommand::__construct()
Constructs an UpdateSelectionCommand object.
Parameters
int[] $media_ids: An array of media IDs to add to the current selection.
File
-
core/
modules/ media_library/ src/ Ajax/ UpdateSelectionCommand.php, line 39
Class
- UpdateSelectionCommand
- AJAX command for adding media items to the media library selection.
Namespace
Drupal\media_library\AjaxCode
public function __construct(array $media_ids) {
$this->mediaIds = $media_ids;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.