You are here

function common_test_theme in Drupal 8

Same name and namespace in other branches
  1. 7 modules/simpletest/tests/common_test.module \common_test_theme()
  2. 9 core/modules/system/tests/modules/common_test/common_test.module \common_test_theme()

Implements hook_theme().

File

core/modules/system/tests/modules/common_test/common_test.module, line 116
Helper module for the Common tests.

Code

function common_test_theme() {
  return [
    'common_test_foo' => [
      'variables' => [
        'foo' => 'foo',
        'bar' => 'bar',
      ],
    ],
    'common_test_render_element' => [
      'render element' => 'foo',
    ],
  ];
}