annotate core/modules/comment/src/Plugin/migrate/D7Comment.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@17 1 <?php
Chris@17 2
Chris@17 3 namespace Drupal\comment\Plugin\migrate;
Chris@17 4
Chris@17 5 use Drupal\migrate_drupal\Plugin\migrate\FieldMigration;
Chris@17 6
Chris@17 7 /**
Chris@17 8 * Migration plugin for Drupal 7 comments with fields.
Chris@17 9 */
Chris@17 10 class D7Comment extends FieldMigration {
Chris@17 11
Chris@17 12 /**
Chris@17 13 * {@inheritdoc}
Chris@17 14 */
Chris@17 15 public function getProcess() {
Chris@18 16 if (!$this->init) {
Chris@18 17 $this->init = TRUE;
Chris@18 18 $this->fieldDiscovery->addEntityFieldProcesses($this, 'comment');
Chris@17 19 }
Chris@17 20 return parent::getProcess();
Chris@17 21 }
Chris@17 22
Chris@17 23 }