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

Breadcrumb

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

function 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 249

Class

MediaLibraryState
A value object for the media library state.

Namespace

Drupal\media_library

Code

public function hasSlotsAvailable() {
    return $this->getAvailableSlots() !== 0;
}
RSS feed
Powered by Drupal