You are here

D7Comment.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/comment/src/Plugin/migrate/D7Comment.php

File

core/modules/comment/src/Plugin/migrate/D7Comment.php
View source
<?php

namespace Drupal\comment\Plugin\migrate;

use Drupal\migrate_drupal\Plugin\migrate\FieldMigration;

/**
 * Migration plugin for Drupal 7 comments with fields.
 */
class D7Comment extends FieldMigration {

  /**
   * {@inheritdoc}
   */
  public function getProcess() {
    if (!$this->init) {
      $this->init = TRUE;
      $this->fieldDiscovery
        ->addEntityFieldProcesses($this, 'comment');
    }
    return parent::getProcess();
  }

}

Classes

Namesort descending Description
D7Comment Migration plugin for Drupal 7 comments with fields.