You are here

public function RefreshDirectoryTree::__construct in Media Directories 8

Same name and namespace in other branches
  1. 3.x modules/media_directories_ui/src/Ajax/RefreshDirectoryTree.php \Drupal\media_directories_ui\Ajax\RefreshDirectoryTree::__construct()
  2. 2.x modules/media_directories_ui/src/Ajax/RefreshDirectoryTree.php \Drupal\media_directories_ui\Ajax\RefreshDirectoryTree::__construct()

RefreshDirectoryTree constructor.

Parameters

int $selected_directory: The selected directory.

array $newly_selected_entity_ids: Newly selected media entity ids.

File

modules/media_directories_ui/src/Ajax/RefreshDirectoryTree.php, line 34

Class

RefreshDirectoryTree
Class RefreshDirectoryTree.

Namespace

Drupal\media_directories_ui\Ajax

Code

public function __construct($selected_directory = MEDIA_DIRECTORY_ROOT, array $newly_selected_entity_ids = []) {
  $this->selectedDirectory = $selected_directory;
  $this->newlySelectedEntityIds = $newly_selected_entity_ids;
}