Mercurial > hg > isophonics-drupal-site
annotate core/modules/media/media.api.php @ 15:e200cb7efeb3
Update Drupal core to 8.5.3 via Composer
author | Chris Cannam |
---|---|
date | Thu, 26 Apr 2018 11:26:54 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 /** |
Chris@0 | 4 * @file |
Chris@0 | 5 * Hooks related to Media and its plugins. |
Chris@0 | 6 */ |
Chris@0 | 7 |
Chris@0 | 8 /** |
Chris@0 | 9 * @addtogroup hooks |
Chris@0 | 10 * @{ |
Chris@0 | 11 */ |
Chris@0 | 12 |
Chris@0 | 13 /** |
Chris@0 | 14 * Alters the information provided in \Drupal\media\Annotation\MediaSource. |
Chris@0 | 15 * |
Chris@0 | 16 * @param array $sources |
Chris@0 | 17 * The array of media source plugin definitions, keyed by plugin ID. |
Chris@0 | 18 */ |
Chris@0 | 19 function hook_media_source_info_alter(array &$sources) { |
Chris@0 | 20 $sources['youtube']['label'] = t('Youtube rocks!'); |
Chris@0 | 21 } |
Chris@0 | 22 |
Chris@0 | 23 /** |
Chris@0 | 24 * @} End of "addtogroup hooks". |
Chris@0 | 25 */ |