Skip to content

Commit

Permalink
Merge branch 'develop' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyun committed Dec 1, 2021
2 parents bdc8af6 + ff47507 commit e83f9a1
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 4 deletions.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"drupal/core-composer-scaffold": "^9.0.0",
"drupal/core-project-message": "^9.0.0",
"drupal/core-recommended": "^9.1",
"drupal/csv_importer": "^1.12",
"drupal/editor_file": "^1.6",
"drupal/entity_clone": "^1.0@beta",
"drupal/fancy_file_delete": "^2.0",
Expand Down Expand Up @@ -211,6 +212,9 @@
},
"drupal/scheduler_content_moderation_integration" : {
"Widget error when field is overridden - undefined offset 0 in $form['publish_state']" : "https://www.drupal.org/files/issues/2020-06-30/3077147-28.patch"
},
"drupal/csv_importer" : {
"Custom patch to get anonymous subscription support on csv_import" : "./patches/anonymous_subscriptions_csv_import.patch"
}
}
}
Expand Down
68 changes: 64 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions patches/anonymous_subscriptions_csv_import.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/src/Plugin/Importer/SubscriptionsImporter.php b/src/Plugin/Importer/SubscriptionsImporter.php
new file mode 100644
index 0000000..5283cd7
--- /dev/null
+++ b/src/Plugin/Importer/SubscriptionsImporter.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Drupal\csv_importer\Plugin\Importer;
+
+use Drupal\csv_importer\Plugin\ImporterBase;
+
+/**
+ * Class SubscriptionsImporter.
+ *
+ * @Importer(
+ * id = "anonymous_subscriptions_importer",
+ * entity_type = "anonymous_subscription",
+ * label = @Translation("Anonymous subscription importer")
+ * )
+ */
+class SubscriptionsImporter extends ImporterBase {}

0 comments on commit e83f9a1

Please sign in to comment.