function EntityComment::processStubRow

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. 8.9.x core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::processStubRow()
  3. 10 core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::processStubRow()

Overrides EntityContentBase::processStubRow

File

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

Class

EntityComment
Comment entity destination.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.