You are here

function layout_builder_test_entity_extra_field_info in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module \layout_builder_test_entity_extra_field_info()
  2. 9 core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module \layout_builder_test_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.module, line 48
Provides hook implementations for Layout Builder tests.

Code

function layout_builder_test_entity_extra_field_info() {
  $extra['node']['bundle_with_section_field']['display']['layout_builder_test'] = [
    'label' => t('Extra label'),
    'description' => t('Extra description'),
    'weight' => 0,
  ];
  $extra['node']['bundle_with_section_field']['display']['layout_builder_test_2'] = [
    'label' => t('Extra Field 2'),
    'description' => t('Extra Field 2 description'),
    'weight' => 0,
    'visible' => FALSE,
  ];
  return $extra;
}