You are here

class D7Comment in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment
  2. 9 core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment

Migration plugin for Drupal 7 comments with fields.

Hierarchy

  • class \Drupal\comment\Plugin\migrate\D7Comment extends \Drupal\migrate_drupal\Plugin\migrate\FieldMigration

Expanded class hierarchy of D7Comment

2 string references to 'D7Comment'
d7_comment.yml in core/modules/comment/migrations/d7_comment.yml
core/modules/comment/migrations/d7_comment.yml
d7_comment_entity_translation.yml in core/modules/content_translation/migrations/d7_comment_entity_translation.yml
core/modules/content_translation/migrations/d7_comment_entity_translation.yml

File

core/modules/comment/src/Plugin/migrate/D7Comment.php, line 10

Namespace

Drupal\comment\Plugin\migrate
View source
class D7Comment extends FieldMigration {

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

}

Members