Skip to content

Commit 7d74f4f

Browse files
committed
Added improvements for anonymous subscription module. As well as import it from CSV via csv_importer module
1 parent 4f54b36 commit 7d74f4f

File tree

3 files changed

+90
-4
lines changed

3 files changed

+90
-4
lines changed

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"drupal/core-composer-scaffold": "^9.0.0",
9494
"drupal/core-project-message": "^9.0.0",
9595
"drupal/core-recommended": "^9.1",
96+
"drupal/csv_importer": "^1.12",
9697
"drupal/editor_file": "^1.6",
9798
"drupal/entity_clone": "^1.0@beta",
9899
"drupal/fancy_file_delete": "^2.0",
@@ -210,6 +211,9 @@
210211
},
211212
"drupal/scheduler_content_moderation_integration" : {
212213
"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"
214+
},
215+
"drupal/csv_importer" : {
216+
"Custom patch to get anonymous subscription support on csv_import" : "./patches/anonymous_subscriptions_csv_import.patch"
213217
}
214218
}
215219
}

composer.lock

Lines changed: 64 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/src/Plugin/Importer/SubscriptionsImporter.php b/src/Plugin/Importer/SubscriptionsImporter.php
2+
new file mode 100644
3+
index 0000000..5283cd7
4+
--- /dev/null
5+
+++ b/src/Plugin/Importer/SubscriptionsImporter.php
6+
@@ -0,0 +1,16 @@
7+
+<?php
8+
+
9+
+namespace Drupal\csv_importer\Plugin\Importer;
10+
+
11+
+use Drupal\csv_importer\Plugin\ImporterBase;
12+
+
13+
+/**
14+
+ * Class SubscriptionsImporter.
15+
+ *
16+
+ * @Importer(
17+
+ * id = "anonymous_subscriptions_importer",
18+
+ * entity_type = "anonymous_subscription",
19+
+ * label = @Translation("Anonymous subscription importer")
20+
+ * )
21+
+ */
22+
+class SubscriptionsImporter extends ImporterBase {}

0 commit comments

Comments
 (0)