function ThemeTestPreprocess::preprocess
Same name in other branches
- 10 core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php \Drupal\theme_test\ThemeTestPreprocess::preprocess()
- 11.x core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php \Drupal\theme_test\ThemeTestPreprocess::preprocess()
Preprocess callback for testing preprocess callbacks.
Parameters
$variables: An associative array containing:
- foo: Text for testing preprocess callback.
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ ThemeTestPreprocess.php, line 17
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.