You are here

protected function Queue::getBackendCollection in Advanced Queue 8

Gets the backend plugin collection.

Ensures the plugin collection is initialized before returning it.

Return value

\Drupal\advancedqueue\BackendPluginCollection The backend plugin collection.

1 call to Queue::getBackendCollection()
Queue::getPluginCollections in src/Entity/Queue.php
Gets the plugin collections used by this object.

File

src/Entity/Queue.php, line 243

Class

Queue
Defines the queue entity class.

Namespace

Drupal\advancedqueue\Entity

Code

protected function getBackendCollection() {
  if (!$this->pluginCollection) {
    $plugin_manager = \Drupal::service('plugin.manager.advancedqueue_backend');
    $this->pluginCollection = new BackendPluginCollection($plugin_manager, $this->backend, $this->backend_configuration, $this->id);
  }
  return $this->pluginCollection;
}