function MediaLibraryState::getSelectedTypeId
Same name in other branches
- 9 core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::getSelectedTypeId()
- 10 core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::getSelectedTypeId()
- 11.x core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::getSelectedTypeId()
Returns the selected media type.
Return value
string The selected media type.
1 call to MediaLibraryState::getSelectedTypeId()
- MediaLibraryState::getHash in core/
modules/ media_library/ src/ MediaLibraryState.php - Get the hash for the state object.
File
-
core/
modules/ media_library/ src/ MediaLibraryState.php, line 234
Class
- MediaLibraryState
- A value object for the media library state.
Namespace
Drupal\media_libraryCode
public function getSelectedTypeId() {
return $this->get('media_library_selected_type');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.