LayoutBuilderExtraFieldTestHooks.php

Namespace

Drupal\layout_builder_extra_field_test\Hook

File

core/modules/layout_builder/tests/modules/layout_builder_extra_field_test/src/Hook/LayoutBuilderExtraFieldTestHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\layout_builder_extra_field_test\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for layout_builder_extra_field_test.
 */
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;
    }

}

Classes

Title Deprecated Summary
LayoutBuilderExtraFieldTestHooks Hook implementations for layout_builder_extra_field_test.

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