You are here

function hook_entity_browser_widget_validation_info_alter in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 entity_browser.api.php \hook_entity_browser_widget_validation_info_alter()

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

Parameters

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

File

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

Code

function hook_entity_browser_widget_validation_info_alter(array &$validation_plugins) {
  $field_displays['not_null']['label'] = t('Not null fabulous validator');
}