class D7Comment

Same name and namespace in other branches
  1. 11.x core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment
  2. 10 core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment
  3. 8.9.x core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment

Migration plugin for Drupal 7 comments with fields.

Hierarchy

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();
  }

}

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