function ThemeTestPreprocess::preprocess
Same name in other branches
- 9 core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php \Drupal\theme_test\ThemeTestPreprocess::preprocess()
- 10 core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php \Drupal\theme_test\ThemeTestPreprocess::preprocess()
Preprocess callback for testing preprocess callbacks.
Parameters
array $variables: An associative array containing:
- foo: Text for testing preprocess callback.
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ ThemeTestPreprocess.php, line 19
Class
- ThemeTestPreprocess
- Class to test preprocess callbacks.
Namespace
Drupal\theme_testCode
public static function preprocess(&$variables) {
$variables['foo'] = 'Make Drupal full of kittens again!';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.