public function RealisticDummyContentEntityBase::setEntity in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentEntityBase.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEntityBase::setEntity()
- 3.x api/src/includes/RealisticDummyContentEntityBase.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEntityBase::setEntity()
Updates the entity object.
Used by functions which manipulate fields and properties. Once they are done with the manipulations, they update the entity using this function.
File
- api/
src/ includes/ RealisticDummyContentEntityBase.php, line 82
Class
- RealisticDummyContentEntityBase
- Generic entity manipulator.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function setEntity($entity) {
$this->entity = $entity;
}