function layout_builder_extra_field_test_entity_extra_field_info

Same name in other branches
  1. 10 core/modules/layout_builder/tests/modules/layout_builder_extra_field_test/layout_builder_extra_field_test.module \layout_builder_extra_field_test_entity_extra_field_info()
  2. 11.x core/modules/layout_builder/tests/modules/layout_builder_extra_field_test/layout_builder_extra_field_test.module \layout_builder_extra_field_test_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

core/modules/layout_builder/tests/modules/layout_builder_extra_field_test/layout_builder_extra_field_test.module, line 14

Code

function layout_builder_extra_field_test_entity_extra_field_info() {
    $extra['node']['bundle_with_section_field']['display']['layout_builder_extra_field_test'] = [
        'label' => t('New Extra Field'),
        'description' => t('New Extra Field description'),
        'weight' => 0,
    ];
    return $extra;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.