Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityComment.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal