You are here

public function EntityQueueUIController::subqueueList in Entityqueue 8

Provides a list of all the subqueues of an entity queue.

Parameters

\Drupal\entityqueue\EntityQueueInterface $entity_queue: The entity queue.

Return value

array A render array.

1 string reference to 'EntityQueueUIController::subqueueList'
entityqueue.routing.yml in ./entityqueue.routing.yml
entityqueue.routing.yml

File

src/Controller/EntityQueueUIController.php, line 63

Class

EntityQueueUIController
Returns responses for Entityqueue UI routes.

Namespace

Drupal\entityqueue\Controller

Code

public function subqueueList(EntityQueueInterface $entity_queue) {
  $list_builder = $this
    ->entityTypeManager()
    ->getListBuilder('entity_subqueue');
  $list_builder
    ->setQueueId($entity_queue
    ->id());
  return $list_builder
    ->render();
}