X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Faggregator_parser_info_alter.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Faggregator_parser_info_alter.twig;h=1d1c074c7b50fd4644a754b9e0ef3082928ee48c;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website 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 index 000000000..1d1c074c7 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/aggregator_parser_info_alter.twig @@ -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; +}