public function MappedObject::setDrupalEntityStub 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::setDrupalEntityStub()
- 5.0.x modules/salesforce_mapping/src/Entity/MappedObject.php \Drupal\salesforce_mapping\Entity\MappedObject::setDrupalEntityStub()
Attach a Drupal entity to the mapped object.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to be attached.
Return value
$this
Overrides MappedObjectInterface::setDrupalEntityStub
File
- modules/
salesforce_mapping/ src/ Entity/ MappedObject.php, line 476
Class
- MappedObject
- Defines a Salesforce Mapped Object entity class.
Namespace
Drupal\salesforce_mapping\EntityCode
public function setDrupalEntityStub(EntityInterface $entity = NULL) {
$this->drupalEntityStub = $entity;
return $this;
}