public function Rest::__construct in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php \Drupal\salesforce_push\Plugin\SalesforcePushQueueProcessor\Rest::__construct()
- 8.3 modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php \Drupal\salesforce_push\Plugin\SalesforcePushQueueProcessor\Rest::__construct()
Rest constructor.
Parameters
array $configuration: Plugin config.
string $plugin_id: Plugin id.
array $plugin_definition: Plugin definition.
\Drupal\salesforce_push\PushQueueInterface $queue: Push queue service.
\Drupal\Core\Entity\EntityTypeManagerInterface $etm: ETM service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: Event dispatcher service.
\Drupal\salesforce\SalesforceAuthProviderPluginManagerInterface $authMan: Auth manager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides PluginBase::__construct
File
- modules/
salesforce_push/ src/ Plugin/ SalesforcePushQueueProcessor/ Rest.php, line 93
Class
- Rest
- Rest queue processor plugin.
Namespace
Drupal\salesforce_push\Plugin\SalesforcePushQueueProcessorCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, PushQueueInterface $queue, EntityTypeManagerInterface $etm, EventDispatcherInterface $eventDispatcher, SalesforceAuthProviderPluginManagerInterface $authMan) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->queue = $queue;
$this->etm = $etm;
$this->mappingStorage = $etm
->getStorage('salesforce_mapping');
$this->mappedObjectStorage = $etm
->getStorage('salesforce_mapped_object');
$this->eventDispatcher = $eventDispatcher;
$this->authMan = $authMan;
}