Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By alexpott on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.5.x
Introduced in version:
8.5.?
Issue links:
Description:
In order to add support for migrating multilingual revisions we changed the internals of \Drupal\migrate\Plugin\migrate\destination\EntityContentBase::updateEntity()
to no longer return an entity. If you have subclassed this and have overridden ::updateEntity()
then you need to ensure all changes are made to the $entity
passed in. Support for returning an entity will be dropped in Drupal 9.
Note to ensure that the $entity
is updated even if you replace the entire entity pass the $entity
by reference. The method signature should be:
protected function updateEntity(EntityInterface &$entity, Row $row) {
Impacts:
Module developers