protected function EntityComment::processStubRow in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::processStubRow()
Do as much population of the stub row as we can.
Parameters
\Drupal\migrate\Row $row: The row of data.
Overrides EntityContentBase::processStubRow
File
- core/
modules/ comment/ src/ Plugin/ migrate/ destination/ EntityComment.php, line 115 - Contains \Drupal\comment\Plugin\migrate\destination\EntityComment.
Class
- EntityComment
- Plugin annotation @MigrateDestination( id = "entity:comment" )
Namespace
Drupal\comment\Plugin\migrate\destinationCode
protected function processStubRow(Row $row) {
parent::processStubRow($row);
// Neither uid nor name is required in itself, but it is required to set one
// of them.
$row
->setDestinationProperty('name', 'anonymous_stub');
}