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

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

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