class D7Comment
Same name and namespace in other branches
- 11.x core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment
- 10 core/modules/comment/src/Plugin/migrate/D7Comment.php \Drupal\comment\Plugin\migrate\D7Comment
- 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
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\migrate\Plugin\Migration implements \Drupal\migrate\Plugin\MigrationInterface, \Drupal\migrate\Plugin\RequirementsInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\migrate_drupal\Plugin\migrate\FieldMigration implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface extends \Drupal\migrate\Plugin\Migration
- class \Drupal\comment\Plugin\migrate\D7Comment extends \Drupal\migrate_drupal\Plugin\migrate\FieldMigration
- class \Drupal\migrate_drupal\Plugin\migrate\FieldMigration implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface extends \Drupal\migrate\Plugin\Migration
- class \Drupal\migrate\Plugin\Migration implements \Drupal\migrate\Plugin\MigrationInterface, \Drupal\migrate\Plugin\RequirementsInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
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\migrateView 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.