public function MediaLibraryState::hasSlotsAvailable in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::hasSlotsAvailable()
- 9 core/modules/media_library/src/MediaLibraryState.php \Drupal\media_library\MediaLibraryState::hasSlotsAvailable()
Determines if additional media items can be selected.
Return value
bool TRUE if additional items can be selected, otherwise FALSE.
File
- core/
modules/ media_library/ src/ MediaLibraryState.php, line 246
Class
- MediaLibraryState
- A value object for the media library state.
Namespace
Drupal\media_libraryCode
public function hasSlotsAvailable() {
return $this
->getAvailableSlots() !== 0;
}