You are here

function hook_entity_browser_widget_info_alter in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 entity_browser.api.php \hook_entity_browser_widget_info_alter()

Alter the information provided in \Drupal\entity_browser\Annotation\EntityBrowserWidget.

Parameters

array $widgets: The array of widget plugins, keyed on the machine-readable name.

File

./entity_browser.api.php, line 29
Hooks related to entity browser and it's plugins.

Code

function hook_entity_browser_widget_info_alter(array &$widgets) {
  $widgets['view_widget']['label'] = t('Views FTW!');
}