class LayoutBuilderExtraFieldTestHooks

Hook implementations for layout_builder_extra_field_test.

Hierarchy

Expanded class hierarchy of LayoutBuilderExtraFieldTestHooks

File

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

Namespace

Drupal\layout_builder_extra_field_test\Hook
View source
class LayoutBuilderExtraFieldTestHooks {
    
    /**
     * Implements hook_entity_extra_field_info().
     */
    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;
    }

}

Members

Title Sort descending Modifiers Object type Summary
LayoutBuilderExtraFieldTestHooks::entityExtraFieldInfo public function Implements hook_entity_extra_field_info().

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