Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / aggregator_parser_info_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_parser_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_parser_info_alter.twig
new file mode 100644 (file)
index 0000000..1d1c074
--- /dev/null
@@ -0,0 +1,10 @@
+/**
+ * Implements hook_aggregator_parser_info_alter().
+ */
+function {{ machine_name }}_aggregator_parser_info_alter(array &$info) {
+  if (empty($info['foo_parser'])) {
+    return;
+  }
+
+  $info['foo_parser']['class'] = Drupal\foo\Plugin\aggregator\parser\FooDefaultParser::class;
+}