diff --git a/domain/src/Plugin/migrate/source/d7/DomainRecord.php b/domain/src/Plugin/migrate/source/d7/DomainRecord.php new file mode 100644 index 00000000..4ceaa42f --- /dev/null +++ b/domain/src/Plugin/migrate/source/d7/DomainRecord.php @@ -0,0 +1,56 @@ +select('domain', 'd')->fields('d', $fields); + } + + /** + * {@inheritdoc} + */ + public function fields() { + return [ + 'domain_id' => $this->t('Domain ID.'), + 'subdomain' => $this->t('Subdomain.'), + 'sitename' => $this->t('Sitename.'), + 'scheme' => $this->t('Scheme.'), + 'valid' => $this->t('Valid.'), + 'weight' => $this->t('Weight.'), + 'is_default' => $this->t('Is default.'), + 'machine_name' => $this->t('Machine name.'), + ]; + } + + /** + * {@inheritdoc} + */ + public function getIds() { + return ['domain_id' => ['type' => 'int']]; + } + +}