You are here

twig_extension_test.module in Drupal 9

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

Namesort descending Description
twig_extension_test_theme Implements hook_theme().