public function MappedObject::setDrupalEntity in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Entity/MappedObject.php \Drupal\salesforce_mapping\Entity\MappedObject::setDrupalEntity()
- 5.0.x modules/salesforce_mapping/src/Entity/MappedObject.php \Drupal\salesforce_mapping\Entity\MappedObject::setDrupalEntity()
Set a Drupal entity for this mapped object.
Return value
$this
Overrides MappedObjectInterface::setDrupalEntity
File
- modules/
salesforce_mapping/ src/ Entity/ MappedObject.php, line 338
Class
- MappedObject
- Defines a Salesforce Mapped Object entity class.
Namespace
Drupal\salesforce_mapping\EntityCode
public function setDrupalEntity(EntityInterface $entity = NULL) {
$this
->set('drupal_entity', $entity);
return $this;
}