You are here

public static function ThemeTestPreprocess::preprocess in Drupal 10

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_test

Code

public static function preprocess(&$variables) {
  $variables['foo'] = 'Make Drupal full of kittens again!';
}