function 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 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.