function field_test_field_ui_preconfigured_options_alter
Same name in other branches
- 9 core/modules/field/tests/modules/field_test/field_test.module \field_test_field_ui_preconfigured_options_alter()
- 10 core/modules/field/tests/modules/field_test/field_test.module \field_test_field_ui_preconfigured_options_alter()
- 11.x core/modules/field/tests/modules/field_test/field_test.module \field_test_field_ui_preconfigured_options_alter()
Implements hook_field_ui_preconfigured_options_alter().
File
-
core/
modules/ field/ tests/ modules/ field_test/ field_test.module, line 213
Code
function field_test_field_ui_preconfigured_options_alter(array &$options, $field_type) {
if ($field_type === 'test_field_with_preconfigured_options') {
$options['custom_options']['entity_view_display']['settings'] = [
'test_formatter_setting_multiple' => 'altered dummy test string',
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.