annotate core/modules/aggregator/aggregator.api.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@18 1 <?php
Chris@18 2
Chris@18 3 /**
Chris@18 4 * @file
Chris@18 5 * Aggregator API documentation.
Chris@18 6 */
Chris@18 7
Chris@18 8 /**
Chris@18 9 * @addtogroup hooks
Chris@18 10 * @{
Chris@18 11 */
Chris@18 12
Chris@18 13 /**
Chris@18 14 * Perform alterations on the available fetchers.
Chris@18 15 *
Chris@18 16 * @param array[] $info
Chris@18 17 * Array of fetcher plugins
Chris@18 18 */
Chris@18 19 function hook_aggregator_fetcher_info_alter(array &$info) {
Chris@18 20 if (empty($info['foo_fetcher'])) {
Chris@18 21 return;
Chris@18 22 }
Chris@18 23
Chris@18 24 $info['foo_fetcher']['class'] = Drupal\foo\Plugin\aggregator\fetcher\FooDefaultFetcher::class;
Chris@18 25 }
Chris@18 26
Chris@18 27 /**
Chris@18 28 * Perform alterations on the available parsers.
Chris@18 29 *
Chris@18 30 * @param array[] $info
Chris@18 31 * Array of parser plugins
Chris@18 32 */
Chris@18 33 function hook_aggregator_parser_info_alter(array &$info) {
Chris@18 34 if (empty($info['foo_parser'])) {
Chris@18 35 return;
Chris@18 36 }
Chris@18 37
Chris@18 38 $info['foo_parser']['class'] = Drupal\foo\Plugin\aggregator\parser\FooDefaultParser::class;
Chris@18 39 }
Chris@18 40
Chris@18 41 /**
Chris@18 42 * Perform alterations on the available processors.
Chris@18 43 *
Chris@18 44 * @param array[] $info
Chris@18 45 * Array of processor plugins
Chris@18 46 */
Chris@18 47 function hook_aggregator_processor_info_alter(array &$info) {
Chris@18 48 if (empty($info['foo_processor'])) {
Chris@18 49 return;
Chris@18 50 }
Chris@18 51
Chris@18 52 $info['foo_processor']['class'] = Drupal\foo\Plugin\aggregator\processor\FooDefaultProcessor::class;
Chris@18 53 }
Chris@18 54
Chris@18 55 /**
Chris@18 56 * @} End of "addtogroup hooks".
Chris@18 57 */