You are here

protected function EntityComment::processStubRow in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::processStubRow()
  2. 10 core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::processStubRow()

Populates as much of the stub row as possible.

Parameters

\Drupal\migrate\Row $row: The row of data.

Overrides EntityContentBase::processStubRow

File

core/modules/comment/src/Plugin/migrate/destination/EntityComment.php, line 97

Class

EntityComment
Plugin annotation @MigrateDestination( id = "entity:comment" )

Namespace

Drupal\comment\Plugin\migrate\destination

Code

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');
}