protected function Book::updateEntity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/book/src/Plugin/migrate/destination/Book.php \Drupal\book\Plugin\migrate\destination\Book::updateEntity()
Update an entity with the new values from row.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to update.
\Drupal\migrate\Row $row: The row object to update from.
Overrides EntityContentBase::updateEntity
File
- core/
modules/ book/ src/ Plugin/ migrate/ destination/ Book.php, line 32 - Contains \Drupal\book\Plugin\migrate\destination\Book.
Class
- Book
- Plugin annotation @MigrateDestination( id = "book", provider = "book" )
Namespace
Drupal\book\Plugin\migrate\destinationCode
protected function updateEntity(EntityInterface $entity, Row $row) {
$entity->book = $row
->getDestinationProperty('book');
}