function CommonTestThemeHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/system/tests/modules/common_test/src/Hook/CommonTestThemeHooks.php, line 19

Class

CommonTestThemeHooks
Hook implementations for common_test.

Namespace

Drupal\common_test\Hook

Code

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

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