function hook_extra_field_display_info_alter in Extra Field 8
Same name and namespace in other branches
- 8.2 extra_field.api.php \hook_extra_field_display_info_alter()
Perform alterations on Extra Field Displays.
Parameters
array $info: An array of information on existing Extra Field Displays, as collected by the annotation discovery mechanism.
1 invocation of hook_extra_field_display_info_alter()
- ExtraFieldDisplayManager::__construct in src/
Plugin/ ExtraFieldDisplayManager.php - Constructor for ExtraFieldDisplayManager objects.
File
- ./
extra_field.api.php, line 39 - Extra Field API documentation.
Code
function hook_extra_field_display_info_alter(array &$info) {
// Let a plugin also be used for all taxonomy terms.
$info['all_nodes']['bundles'][] = 'taxonomy_term.*';
}