You are here

public function EntityQueueHandlerBase::getQueueListBuilderOperations in Entityqueue 8

Gets this queue handler's list builder operations.

Return value

array An array of entity operations, as defined by \Drupal\Core\Entity\EntityListBuilderInterface::getOperations()

Overrides EntityQueueHandlerInterface::getQueueListBuilderOperations

1 method overrides EntityQueueHandlerBase::getQueueListBuilderOperations()
Simple::getQueueListBuilderOperations in src/Plugin/EntityQueueHandler/Simple.php
Gets this queue handler's list builder operations.

File

src/EntityQueueHandlerBase.php, line 96

Class

EntityQueueHandlerBase
Base class for EntityQueueHandler plugins.

Namespace

Drupal\entityqueue

Code

public function getQueueListBuilderOperations() {

  // Add an operation to list all subqueues by default.
  $operations['view_subqueues'] = [
    'title' => $this
      ->t('View subqueues'),
    'weight' => -9,
    'url' => $this->queue
      ->toUrl('subqueue-list'),
  ];
  return $operations;
}