class ThemeTestPreprocess
Same name in other branches
- 9 core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php \Drupal\theme_test\ThemeTestPreprocess
- 10 core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php \Drupal\theme_test\ThemeTestPreprocess
Class to test preprocess callbacks.
Hierarchy
- class \Drupal\theme_test\ThemeTestPreprocess
Expanded class hierarchy of ThemeTestPreprocess
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ ThemeTestPreprocess.php, line 10
Namespace
Drupal\theme_testView source
class ThemeTestPreprocess {
/**
* Preprocess callback for testing preprocess callbacks.
*
* @param array $variables
* An associative array containing:
* - foo: Text for testing preprocess callback.
*/
public static function preprocess(&$variables) {
$variables['foo'] = 'Make Drupal full of kittens again!';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ThemeTestPreprocess::preprocess | public static | function | Preprocess callback for testing preprocess callbacks. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.