You are here

public function RealisticDummyContentEntityBase::setEntity in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentEntityBase.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEntityBase::setEntity()
  2. 7.2 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 111

Class

RealisticDummyContentEntityBase
Generic entity manipulator.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function setEntity($entity) {
  $this->entity = $entity;
}