function twig_extension_test_theme

Same name in other branches
  1. 9 core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module \twig_extension_test_theme()
  2. 8.9.x core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module \twig_extension_test_theme()
  3. 11.x core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module \twig_extension_test_theme()

Implements hook_theme().

File

core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module, line 11

Code

function twig_extension_test_theme($existing, $type, $theme, $path) {
    return [
        'twig_extension_test_filter' => [
            'variables' => [
                'message' => NULL,
                'safe_join_items' => NULL,
            ],
            'template' => 'twig_extension_test.filter',
        ],
        'twig_extension_test_function' => [
            'render element' => 'element',
            'template' => 'twig_extension_test.function',
        ],
    ];
}

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