You are here

public function EntityQueueHandlerManager::getAllEntityQueueHandlers in Entityqueue 8

Gets all handlers.

Return value

array Returns all entityqueue handlers.

File

src/EntityQueueHandlerManager.php, line 37

Class

EntityQueueHandlerManager
Provides an EntityQueueHandler plugin manager.

Namespace

Drupal\entityqueue

Code

public function getAllEntityQueueHandlers() {
  $handlers = [];
  foreach ($this
    ->getDefinitions() as $plugin_id => $plugin_def) {
    $handlers[$plugin_id] = $plugin_def['title'];
  }
  asort($handlers);
  return $handlers;
}