5 * Hooks related to entity browser and it's plugins.
14 * Alter the information provided in \Drupal\entity_browser\Annotation\EntityBrowserDisplay.
16 * @param array $displays
17 * The array of display plugins, keyed on the machine-readable name.
19 function hook_entity_browser_display_info_alter(array &$displays) {
20 $displays['modal_display']['label'] = t('Superb fancy stuff!');
24 * Alter the information provided in \Drupal\entity_browser\Annotation\EntityBrowserWidget.
26 * @param array $widgets
27 * The array of widget plugins, keyed on the machine-readable name.
29 function hook_entity_browser_widget_info_alter(array &$widgets) {
30 $widgets['view_widget']['label'] = t('Views FTW!');
34 * Alter the information provided in \Drupal\entity_browser\Annotation\SelectionDisplay.
36 * @param array $selection_displays
37 * The array of selection display plugins, keyed on the machine-readable name.
39 function hook_entity_browser_selection_display_info_alter(array &$selection_displays) {
40 $selection_displays['no_selection']['label'] = t('Nothing!');
44 * Alter the information provided in \Drupal\entity_browser\Annotation\EntityBrowserWidgetSelector.
46 * @param array $widget_selectors
47 * The array of widget selector plugins, keyed on the machine-readable name.
49 function hook_entity_browser_widget_selector_info_alter(array &$widget_selectors) {
50 $widgets['tab_selector']['label'] = t('Tabs are for winners');
54 * Alter the information provided in \Drupal\entity_browser\Annotation\EntityBrowserFieldWidgetDisplay.
56 * @param array $field_displays
57 * The array of field widget display plugins, keyed on the machine-readable
60 function hook_entity_browser_field_widget_display_info_alter(array &$field_displays) {
61 $field_displays['rendered_entity']['label'] = t('Entity render system FTW');
65 * Alter the information provided in \Drupal\entity_browser\Annotation\EntityBrowserWidgetValidation.
67 * @param array $validation_plugins
68 * The array of widget validation plugins, keyed on the machine-readable
71 function hook_entity_browser_widget_validation_info_alter(array &$validation_plugins) {
72 $field_displays['not_null']['label'] = t('Not null fabulous validator');
76 * @} End of "addtogroup hooks".