You are here

class CronPull in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_pull/src/Plugin/QueueWorker/CronPull.php \Drupal\salesforce_pull\Plugin\QueueWorker\CronPull
  2. 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

Expanded class hierarchy of CronPull

File

modules/salesforce_pull/src/Plugin/QueueWorker/CronPull.php, line 16

Namespace

Drupal\salesforce_pull\Plugin\QueueWorker
View source
class CronPull extends PullBase {

}

Members

Namesort descending Modifiers Type Description Overrides
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PullBase::$client protected property The SF REST client.
PullBase::$etm protected property The entity type manager.
PullBase::$eventDispatcher protected property Event dispatcher service.
PullBase::$mappedObjectStorage protected property Storage handler for Mapped Objects.
PullBase::$mappingStorage protected property Storage handler for SF mappings.
PullBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
PullBase::createEntity protected function Create a Drupal entity and mapped object.
PullBase::processItem public function Queue item process callback. Overrides QueueWorkerInterface::processItem
PullBase::sendEntityId protected function Push the Entity ID up to Salesforce.
PullBase::updateEntity protected function Update an existing Drupal entity.
PullBase::__construct public function Creates a new PullBase object. Overrides PluginBase::__construct