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

Breadcrumb

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

function UpdateSelectionCommand::render

Overrides CommandInterface::render

File

core/modules/media_library/src/Ajax/UpdateSelectionCommand.php, line 46

Class

UpdateSelectionCommand
AJAX command for adding media items to the media library selection.

Namespace

Drupal\media_library\Ajax

Code

public function render() {
    return [
        'command' => 'updateMediaLibrarySelection',
        'mediaIds' => $this->mediaIds,
    ];
}
RSS feed
Powered by Drupal