twig_extension_test.module

Same filename in other branches
  1. 9 core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module
  2. 10 core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module
  3. 11.x core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module

Helper module for Twig extension tests.

File

core/modules/system/tests/modules/twig_extension_test/twig_extension_test.module

View source
<?php


/**
 * @file
 * Helper module for Twig extension tests.
 */

/**
 * Implements hook_theme().
 */
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',
        ],
    ];
}

Functions

Title Deprecated Summary
twig_extension_test_theme Implements hook_theme().

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