function ds_test_entity_extra_field_info in Display Suite 8.3
Same name and namespace in other branches
- 8.4 tests/modules/ds_test/ds_test.module \ds_test_entity_extra_field_info()
- 8.2 tests/modules/ds_test/ds_test.module \ds_test_entity_extra_field_info()
Implements hook_entity_extra_field_info().
File
- tests/
modules/ ds_test/ ds_test.module, line 43 - Display Suite test module.
Code
function ds_test_entity_extra_field_info() {
$extra = [];
// Register a single field to test that
// extra fields in the hidden region are really hidden.
$extra['node']['article']['display']['heavy_field'] = [
'label' => t('Heavy extra test field'),
'weight' => 10,
];
return $extra;
}