You are here

public function MediaLibraryState::getSelectedTypeId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::getSelectedTypeId()
  2. 9 core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::getSelectedTypeId()

Returns the selected media type.

Return value

string The selected media type.

File

core/modules/media_library/src/MediaLibraryState.php, line 236

Class

MediaLibraryState
A value object for the media library state.

Namespace

Drupal\media_library

Code

public function getSelectedTypeId() {
  return $this
    ->get('media_library_selected_type');
}