function D7Comment::getProcess

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

Overrides FieldMigration::getProcess

File

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

Class

D7Comment
Migration plugin for Drupal 7 comments with fields.

Namespace

Drupal\comment\Plugin\migrate

Code

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.