You are here

class ThemeTestPreprocess in Drupal 10

Class to test preprocess callbacks.

Hierarchy

Expanded class hierarchy of ThemeTestPreprocess

File

core/modules/system/tests/modules/theme_test/src/ThemeTestPreprocess.php, line 8

Namespace

Drupal\theme_test
View 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

Namesort descending Modifiers Type Description Overrides
ThemeTestPreprocess::preprocess public static function Preprocess callback for testing preprocess callbacks.