function EntityCommentType::import
Same name in other branches
- 9 core/modules/comment/src/Plugin/migrate/destination/EntityCommentType.php \Drupal\comment\Plugin\migrate\destination\EntityCommentType::import()
- 8.9.x core/modules/comment/src/Plugin/migrate/destination/EntityCommentType.php \Drupal\comment\Plugin\migrate\destination\EntityCommentType::import()
- 10 core/modules/comment/src/Plugin/migrate/destination/EntityCommentType.php \Drupal\comment\Plugin\migrate\destination\EntityCommentType::import()
Overrides EntityConfigBase::import
File
-
core/
modules/ comment/ src/ Plugin/ migrate/ destination/ EntityCommentType.php, line 18
Class
- EntityCommentType
- Comment type destination.
Namespace
Drupal\comment\Plugin\migrate\destinationCode
public function import(Row $row, array $old_destination_id_values = []) {
$entity_ids = parent::import($row, $old_destination_id_values);
\Drupal::service('comment.manager')->addBodyField(reset($entity_ids));
return $entity_ids;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.