Version 1
[yaffs-website] / web / core / modules / path / src / Plugin / migrate / source / d6 / UrlAlias.php
diff --git a/web/core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php b/web/core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
new file mode 100644 (file)
index 0000000..3e1f624
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace Drupal\path\Plugin\migrate\source\d6;
+
+use Drupal\path\Plugin\migrate\source\UrlAliasBase;
+
+/**
+ * URL aliases source from database.
+ *
+ * @MigrateSource(
+ *   id = "d6_url_alias",
+ *   source_provider = "path"
+ * )
+ */
+class UrlAlias extends UrlAliasBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function fields() {
+    $fields = parent::fields();
+    $fields['src'] = $this->t('The internal system path.');
+    $fields['dst'] = $this->t('The path alias.');
+    return $fields;
+  }
+
+}