function MediaListBuilder::getEntityIds

Same name in other branches
  1. 8.9.x core/modules/media/src/MediaListBuilder.php \Drupal\media\MediaListBuilder::getEntityIds()
  2. 10 core/modules/media/src/MediaListBuilder.php \Drupal\media\MediaListBuilder::getEntityIds()
  3. 11.x core/modules/media/src/MediaListBuilder.php \Drupal\media\MediaListBuilder::getEntityIds()

Overrides EntityListBuilder::getEntityIds

File

core/modules/media/src/MediaListBuilder.php, line 150

Class

MediaListBuilder
Provides a listing of media items.

Namespace

Drupal\media

Code

protected function getEntityIds() {
    $query = $this->getStorage()
        ->getQuery()
        ->accessCheck(TRUE)
        ->sort('changed', 'DESC');
    // Only add the pager if a limit is specified.
    if ($this->limit) {
        $query->pager($this->limit);
    }
    return $query->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.