You are here

protected function BrightcoveVideoListBuilder::getEntityIds in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/BrightcoveVideoListBuilder.php \Drupal\brightcove\BrightcoveVideoListBuilder::getEntityIds()
  2. 3.x src/BrightcoveVideoListBuilder.php \Drupal\brightcove\BrightcoveVideoListBuilder::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/BrightcoveVideoListBuilder.php, line 72

Class

BrightcoveVideoListBuilder
Defines a class to build a listing of Brightcove Videos.

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();
}