function theme_test_theme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 8
Code
function theme_test_theme($existing, $type, $theme, $path) {
$items['theme_test'] = array(
'file' => 'theme_test.inc',
'variables' => array(
'foo' => '',
),
'function' => 'theme_theme_test',
);
$items['theme_test_template_test'] = array(
'template' => 'theme_test.template_test',
);
$items['theme_test_template_test_2'] = array(
'template' => 'theme_test.template_test',
);
$items['theme_test_suggestion_provided'] = array(
'variables' => array(),
);
$items['theme_test_specific_suggestions'] = array(
'variables' => array(),
);
$items['theme_test_suggestions'] = array(
'variables' => array(),
);
$items['theme_test_general_suggestions'] = array(
'variables' => array(),
);
$items['theme_test_function_suggestions'] = array(
'variables' => array(),
'function' => 'theme_theme_test_function_suggestions',
);
$items['theme_test_suggestions_include'] = array(
'variables' => array(),
'function' => 'theme_theme_test_suggestions_include',
);
$items['theme_test_foo'] = array(
'variables' => array(
'foo' => NULL,
),
'function' => 'theme_theme_test_foo',
);
$items['theme_test_render_element'] = array(
'render element' => 'elements',
);
$items['theme_test_render_element_children'] = array(
'render element' => 'element',
'function' => 'theme_theme_test_render_element_children',
);
$items['theme_test_function_template_override'] = array(
'variables' => array(),
'function' => 'theme_theme_test_function_template_override',
);
$info['test_theme_not_existing_function'] = array(
'function' => 'test_theme_not_existing_function',
);
$items['theme_test_preprocess_suggestions'] = [
'variables' => [
'foo' => '',
'bar' => '',
],
];
return $items;
}