function BlockContentThemeSuggestionsTestHooks::theme

Implements hook_theme().

File

core/modules/block_content/tests/modules/block_content_theme_suggestions_test/src/Hook/BlockContentThemeSuggestionsTestHooks.php, line 54

Class

BlockContentThemeSuggestionsTestHooks
Hook implementations for block_content_theme_suggestions_test.

Namespace

Drupal\block_content_theme_suggestions_test\Hook

Code

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

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