Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateSelectionCommand.php

function 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\Ajax

Code

public function __construct(array $media_ids) {
    $this->mediaIds = $media_ids;
}
RSS feed
Powered by Drupal