theme_test.inc

Same filename in other branches
  1. 9 core/modules/system/tests/modules/theme_test/theme_test.inc
  2. 8.9.x core/modules/system/tests/modules/theme_test/theme_test.inc
  3. 10 core/modules/system/tests/modules/theme_test/theme_test.inc
  4. 11.x core/modules/system/tests/modules/theme_test/theme_test.inc

File

modules/simpletest/tests/theme_test.inc

View source
<?php


/**
 * Returns HTML for the 'theme_test' theme hook used by tests.
 */
function theme_theme_test($variables) {
    return 'Theme hook implementor=theme_theme_test(). Foo=' . $variables['foo'];
}

/**
 * Preprocesses variables for theme_theme_test().
 */
function template_preprocess_theme_test(&$variables) {
    $variables['foo'] = 'template_preprocess_theme_test';
}

Functions

Title Deprecated Summary
template_preprocess_theme_test Preprocesses variables for theme_theme_test().
theme_theme_test Returns HTML for the 'theme_test' theme hook used by tests.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.