You are here

components_test.module in Components! 8.2

Same filename and directory in other branches
  1. 3.x tests/modules/components_test/components_test.module

Test module.

File

tests/modules/components_test/components_test.module
View source
<?php

/**
 * @file
 * Test module.
 */

/**
 * Implements hook_theme().
 */
function components_test_theme($existing, $type, $theme, $path) : array {
  $items['components_test'] = [
    'variables' => [],
  ];
  return $items;
}

/**
 * Implements hook_protected_twig_namespaces_alter().
 */
function components_test_protected_twig_namespaces_alter(array &$protectedNamespaces) {

  // Allow the "system" Twig namespace to be altered.
  unset($protectedNamespaces['system']);
}