public function NodeComment::prepareRow in Import 8
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/NodeComment.php \Drupal\import\Plugin\migrate\source\NodeComment::prepareRow()
File
- src/
Plugin/ migrate/ source/ NodeComment.php, line 22 - Contains \Drupal\import\Plugin\migrate\source\NodeComment.
Class
- NodeComment
- Source for node Comment CSV.
Namespace
Drupal\import\Plugin\migrate\sourceCode
public function prepareRow(Row $row) {
// Provide the Default comment settings.
$row
->setDestinationProperty('entity_type', 'node');
$row
->setDestinationProperty('field_name', 'comment');
}