public function Rest::__construct in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php \Drupal\salesforce_push\Plugin\SalesforcePushQueueProcessor\Rest::__construct()
- 5.0.x 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\salesforce\Rest\RestClientInterface $client: Salesforce client service.
\Drupal\Core\Entity\EntityTypeManagerInterface $etm: ETM service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: Event dispatcher service.
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, RestClientInterface $client, EntityTypeManagerInterface $etm, EventDispatcherInterface $eventDispatcher) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->queue = $queue;
$this->client = $client;
$this->etm = $etm;
$this->mappingStorage = $etm
->getStorage('salesforce_mapping');
$this->mappedObjectStorage = $etm
->getStorage('salesforce_mapped_object');
$this->eventDispatcher = $eventDispatcher;
}