function hook_media_entity_type_info_alter in Media entity 8
Alter the information provided in \Drupal\media_entity\Annotation\MediaType.
Parameters
array $types: The array of type plugins, keyed on the machine-readable name.
1 invocation of hook_media_entity_type_info_alter()
- MediaTypeManager::__construct in src/
MediaTypeManager.php - Constructs a new MediaTypeManager.
File
- ./
media_entity.api.php, line 19 - Hooks related to media entity and it's plugins.
Code
function hook_media_entity_type_info_alter(&$types) {
$types['youtube']['label'] = t('Youtube rocks!');
}