function field_test_field_info_entity_type_ui_definitions_alter
Same name in other branches
- 11.x core/modules/field/tests/modules/field_test/field_test.module \field_test_field_info_entity_type_ui_definitions_alter()
Implements hook_field_info_entity_type_ui_definitions_alter().
File
-
core/
modules/ field/ tests/ modules/ field_test/ field_test.module, line 224
Code
function field_test_field_info_entity_type_ui_definitions_alter(array &$ui_definitions, string $entity_type_id) {
if ($entity_type_id === 'node') {
$ui_definitions['boolean']['label'] = new TranslatableMarkup('Boolean (overridden by alter)');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.