function MenuListBuilder::getEntityIds

Same name and namespace in other branches
  1. 10 core/modules/menu_ui/src/MenuListBuilder.php \Drupal\menu_ui\MenuListBuilder::getEntityIds()

Overrides EntityListBuilder::getEntityIds

File

core/modules/menu_ui/src/MenuListBuilder.php, line 20

Class

MenuListBuilder
Defines a class to build a listing of menu entities.

Namespace

Drupal\menu_ui

Code

protected function getEntityIds() {
    $query = $this->getStorage()
        ->getQuery()
        ->sort('label', 'ASC');
    // 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.