You are here

protected function SalesforceMapping::setPullInfo in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::setPullInfo()
  2. 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::setPullInfo()

Setter for pull info.

Parameters

string $key: The config id to set.

mixed $value: The value.

Return value

$this

2 calls to SalesforceMapping::setPullInfo()
SalesforceMapping::setLastDeleteTime in modules/salesforce_mapping/src/Entity/SalesforceMapping.php
Set this mapping as having been last processed for deletes at $time.
SalesforceMapping::setLastPullTime in modules/salesforce_mapping/src/Entity/SalesforceMapping.php
Set this mapping as having been last pulled at $time.

File

modules/salesforce_mapping/src/Entity/SalesforceMapping.php, line 602

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

protected function setPullInfo($key, $value) {
  $this->pull_info[$key] = $value;
  $pull_info = $this
    ->state()
    ->get('salesforce.mapping_pull_info');
  $pull_info[$this
    ->id()] = $this->pull_info;
  $this
    ->state()
    ->set('salesforce.mapping_pull_info', $pull_info);
  return $this;
}