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_processor_info_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_processor_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_processor_info_alter.twig
new file mode 100644 (file)
index 0000000..b748881
--- /dev/null
@@ -0,0 +1,10 @@
+/**
+ * Implements hook_aggregator_processor_info_alter().
+ */
+function {{ machine_name }}_aggregator_processor_info_alter(array &$info) {
+  if (empty($info['foo_processor'])) {
+    return;
+  }
+
+  $info['foo_processor']['class'] = Drupal\foo\Plugin\aggregator\processor\FooDefaultProcessor::class;
+}