diff --git a/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php index 24a0ba4..82d3cb9 100644 --- a/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php +++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php @@ -207,10 +207,6 @@ public function getIds() { * @param \Drupal\migrate\Row $row * The row object to update from. * - * @return \Drupal\Core\Entity\EntityInterface - * An updated entity from row values. This is deprecated in Drupal 8.6.0 and - * will be removed in Drupal 9. - * * @see https://www.drupal.org/node/2960492 */ protected function updateEntity(EntityInterface &$entity, Row $row) { @@ -256,10 +252,6 @@ protected function updateEntity(EntityInterface &$entity, Row $row) { } $this->setRollbackAction($row->getIdMap(), $rollback_action); - - // The entity is passed by reference so we don't need to return it. - // This is deprecated in Drupal 8.6.0 and will be removed in Drupal 9. - return $entity; } /**