function module_test_procedural_preprocess_theme
Implements hook_theme().
1 string reference to 'module_test_procedural_preprocess_theme'
- ThemeDeprecationTest::testTemplatePreprocessIncludes in core/
modules/ system/ tests/ src/ Kernel/ Theme/ ThemeDeprecationTest.php - Tests deprecations around template_preprocess functions and include files.
File
-
core/
modules/ system/ tests/ modules/ module_test_procedural_preprocess/ module_test_procedural_preprocess.module, line 13
Code
function module_test_procedural_preprocess_theme() : array {
$path = \Drupal::service('extension.list.module')->getPath('module_test_procedural_preprocess');
return [
'module_test_procedural_preprocess_theme' => [
'file' => 'module_test_procedural_preprocess.theme.inc',
],
'module_test_procedural_preprocess_includes' => [
'includes' => [
$path . '/module_test_procedural_preprocess.additional.inc',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.