function common_test_theme in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/common_test/common_test.module \common_test_theme()
- 7 modules/simpletest/tests/common_test.module \common_test_theme()
- 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_theme()
Implements hook_theme().
File
- core/
modules/ system/ tests/ modules/ common_test/ common_test.module, line 116 - Helper module for the Common tests.
Code
function common_test_theme() {
return [
'common_test_foo' => [
'variables' => [
'foo' => 'foo',
'bar' => 'bar',
],
],
'common_test_render_element' => [
'render element' => 'foo',
],
];
}