PushQueueProcessorPluginManager.php in Salesforce Suite 8.4
Same filename and directory in other branches
Namespace
Drupal\salesforce_pushFile
modules/salesforce_push/src/PushQueueProcessorPluginManager.phpView source
<?php
namespace Drupal\salesforce_push;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
/**
* Plugin type manager for SF push queue processors.
*/
class PushQueueProcessorPluginManager extends DefaultPluginManager {
/**
* Push queue plugin processor manager.
*
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* Cache service.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* Module handler service.
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/SalesforcePushQueueProcessor', $namespaces, $module_handler);
$this
->setCacheBackend($cache_backend, 'salesforce_push_queue_processor');
}
}
Classes
Name | Description |
---|---|
PushQueueProcessorPluginManager | Plugin type manager for SF push queue processors. |