You are here

public function SalesforceMapping::save in Salesforce Suite 8.3

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

Save the entity.

Return value

object The newly saved version of the entity.

Overrides ConfigEntityBase::save

File

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

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

public function save() {
  $this->updated = $this
    ->getRequestTime();
  if (isset($this->is_new) && $this->is_new) {
    $this->created = $this
      ->getRequestTime();
  }
  return parent::save();
}