function LayoutBuilderExtraFieldTestHooks::entityExtraFieldInfo

Implements hook_entity_extra_field_info().

File

core/modules/layout_builder/tests/modules/layout_builder_extra_field_test/src/Hook/LayoutBuilderExtraFieldTestHooks.php, line 17

Class

LayoutBuilderExtraFieldTestHooks
Hook implementations for layout_builder_extra_field_test.

Namespace

Drupal\layout_builder_extra_field_test\Hook

Code

public function entityExtraFieldInfo() {
    $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.