D7Comment.php

Same filename in other branches
  1. 8.9.x core/modules/comment/src/Plugin/migrate/D7Comment.php
  2. 10 core/modules/comment/src/Plugin/migrate/D7Comment.php
  3. 11.x core/modules/comment/src/Plugin/migrate/D7Comment.php

Namespace

Drupal\comment\Plugin\migrate

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

Title Deprecated Summary
D7Comment Migration plugin for Drupal 7 comments with fields.

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