You are here

protected function BrightcovePlaylistListBuilder::getEntityIds in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/BrightcovePlaylistListBuilder.php \Drupal\brightcove\BrightcovePlaylistListBuilder::getEntityIds()
  2. 3.x src/BrightcovePlaylistListBuilder.php \Drupal\brightcove\BrightcovePlaylistListBuilder::getEntityIds()

Loads entity IDs using a pager sorted by the entity id.

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

src/BrightcovePlaylistListBuilder.php, line 70

Class

BrightcovePlaylistListBuilder
Defines a class to build a listing of Brightcove Playlists.

Namespace

Drupal\brightcove

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery()
    ->sort('changed', 'DESC');

  // Only add the pager if a limit is specified.
  if ($this->limit) {
    $query
      ->pager($this->limit);
  }
  return $query
    ->execute();
}