function layout_builder_theme_suggestions_test_theme

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_theme_suggestions_test/layout_builder_theme_suggestions_test.module \layout_builder_theme_suggestions_test_theme()
  2. 8.9.x core/modules/layout_builder/tests/modules/layout_builder_theme_suggestions_test/layout_builder_theme_suggestions_test.module \layout_builder_theme_suggestions_test_theme()
  3. 10 core/modules/layout_builder/tests/modules/layout_builder_theme_suggestions_test/layout_builder_theme_suggestions_test.module \layout_builder_theme_suggestions_test_theme()

Implements hook_theme().

File

core/modules/layout_builder/tests/modules/layout_builder_theme_suggestions_test/layout_builder_theme_suggestions_test.module, line 11

Code

function layout_builder_theme_suggestions_test_theme() {
    // It is necessary to explicitly register the template via hook_theme()
    // because it is added via a module, not a theme.
    return [
        'field__node__body__bundle_with_section_field__default' => [
            'base hook' => 'field',
        ],
    ];
}

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