You are here

public function QueueService::getPlugins in Purge 8.3

Retrieve a list of all available plugins providing the service.

Return value

array[] Associative array with plugin definitions and the plugin_id in each key.

Overrides ServiceBase::getPlugins

See also

\Drupal\Component\Plugin\PluginManagerInterface::getDefinitions()

1 call to QueueService::getPlugins()
QueueService::getPluginsEnabled in src/Plugin/Purge/Queue/QueueService.php
Retrieve the configured plugin_ids that the service will use.

File

src/Plugin/Purge/Queue/QueueService.php, line 372

Class

QueueService
Provides the service that lets invalidations interact with a queue backend.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function getPlugins() {
  if (is_null($this->plugins)) {
    $this->plugins = $this->pluginManager
      ->getDefinitions();
    unset($this->plugins[self::FALLBACK_PLUGIN]);
  }
  return $this->plugins;
}