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
1 /**
2  * Implements hook_aggregator_parser_info_alter().
3  */
4 function {{ machine_name }}_aggregator_parser_info_alter(array &$info) {
5   if (empty($info['foo_parser'])) {
6     return;
7   }
8
9   $info['foo_parser']['class'] = Drupal\foo\Plugin\aggregator\parser\FooDefaultParser::class;
10 }