class ThemeTestPreprocess in Drupal 10
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 8 
Namespace
Drupal\theme_testView source
class ThemeTestPreprocess {
  /**
   * Preprocess callback for testing preprocess callbacks.
   *
   * @param $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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| ThemeTestPreprocess:: | public static | function | Preprocess callback for testing preprocess callbacks. | 
