class CronPull in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_pull/src/Plugin/QueueWorker/CronPull.php \Drupal\salesforce_pull\Plugin\QueueWorker\CronPull
- 5.0.x modules/salesforce_pull/src/Plugin/QueueWorker/CronPull.php \Drupal\salesforce_pull\Plugin\QueueWorker\CronPull
A Salesforce record puller that pulls on CRON run.
@TODO how to make cron time configurable to admin, or at least via settings?
Plugin annotation
@QueueWorker(
id = "cron_salesforce_pull",
title = @Translation("Salesforce Pull"),
cron = {"time" = 180}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface
- class \Drupal\salesforce_pull\Plugin\QueueWorker\PullBase implements ContainerFactoryPluginInterface
- class \Drupal\salesforce_pull\Plugin\QueueWorker\CronPull
- class \Drupal\salesforce_pull\Plugin\QueueWorker\PullBase implements ContainerFactoryPluginInterface
- class \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface
Expanded class hierarchy of CronPull
File
- modules/
salesforce_pull/ src/ Plugin/ QueueWorker/ CronPull.php, line 16
Namespace
Drupal\salesforce_pull\Plugin\QueueWorkerView source
class CronPull extends PullBase {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PullBase:: |
protected | property | The SF REST client. | |
PullBase:: |
protected | property | The entity type manager. | |
PullBase:: |
protected | property | Event dispatcher service. | |
PullBase:: |
protected | property | Storage handler for Mapped Objects. | |
PullBase:: |
protected | property | Storage handler for SF mappings. | |
PullBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
PullBase:: |
protected | function | Create a Drupal entity and mapped object. | |
PullBase:: |
public | function |
Queue item process callback. Overrides QueueWorkerInterface:: |
|
PullBase:: |
protected | function | Push the Entity ID up to Salesforce. | |
PullBase:: |
protected | function | Update an existing Drupal entity. | |
PullBase:: |
public | function |
Creates a new PullBase object. Overrides PluginBase:: |