function theme_test_theme
Same name in other branches
- 7.x modules/simpletest/tests/theme_test.module \theme_test_theme()
- 9 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
- 10 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
- 11.x core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme()
Implements hook_theme().
File
-
core/
modules/ system/ tests/ modules/ theme_test/ theme_test.module, line 13
Code
function theme_test_theme($existing, $type, $theme, $path) {
$items['theme_test'] = [
'file' => 'theme_test.inc',
'variables' => [
'foo' => '',
],
];
$items['theme_test_template_test'] = [
'template' => 'theme_test.template_test',
];
$items['theme_test_template_test_2'] = [
'template' => 'theme_test.template_test',
];
$items['theme_test_suggestion_provided'] = [
'variables' => [],
];
$items['theme_test_specific_suggestions'] = [
'variables' => [],
];
$items['theme_test_suggestions'] = [
'variables' => [],
];
$items['theme_test_general_suggestions'] = [
'variables' => [],
];
$items['theme_test_foo'] = [
'variables' => [
'foo' => NULL,
],
];
$items['theme_test_render_element'] = [
'render element' => 'elements',
];
$items['theme_test_render_element_children'] = [
'render element' => 'element',
];
$items['theme_test_preprocess_suggestions'] = [
'variables' => [
'foo' => '',
'bar' => '',
],
];
$items['theme_test_registered_by_module'] = [
'render element' => 'content',
'base hook' => 'container',
];
$items['theme_test_theme_class'] = [
'variables' => [
'message' => '',
],
];
return $items;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.