You are here

protected function SalesforceMapping::setPushInfo in Salesforce Suite 5.0.x

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

Setter for pull info.

Parameters

string $key: The config id to set.

mixed $value: The value.

Return value

$this

1 call to SalesforceMapping::setPushInfo()
SalesforceMapping::setLastPushTime in modules/salesforce_mapping/src/Entity/SalesforceMapping.php
Set the timestamp when the push queue was last process for this mapping.

File

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

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

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