function Entity::updateEntity
Same name in other branches
- 10 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::updateEntity()
Updates an entity with the new values from row.
This method should be implemented in extending classes.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to update.
\Drupal\migrate\Row $row: The row object to update from.
Return value
\Drupal\Core\Entity\EntityInterface An updated entity from row values.
Throws
\LogicException Thrown for config entities, if the destination is for translations and either the "property" or "translation" property does not exist.
1 call to Entity::updateEntity()
- Entity::getEntity in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Entity.php - Creates or loads an entity.
2 methods override Entity::updateEntity()
- EntityConfigBase::updateEntity in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityConfigBase.php - Updates an entity with the contents of a row.
- EntityContentBase::updateEntity in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentBase.php - Updates an entity with the new values from row.
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Entity.php, line 205
Class
- Entity
- Provides a generic destination to import entities.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
protected abstract function updateEntity(EntityInterface $entity, Row $row);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.