function MediaListBuilder::getEntityIds
Same name in other branches
- 9 core/modules/media/src/MediaListBuilder.php \Drupal\media\MediaListBuilder::getEntityIds()
- 8.9.x core/modules/media/src/MediaListBuilder.php \Drupal\media\MediaListBuilder::getEntityIds()
- 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\mediaCode
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.