comparison core/modules/aggregator/aggregator.api.php @ 18:af1871eacc83

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