You are here

function components_test_protected_twig_namespaces_alter in Components! 3.x

Same name and namespace in other branches
  1. 8.2 tests/modules/components_test/components_test.module \components_test_protected_twig_namespaces_alter()

Implements hook_protected_twig_namespaces_alter().

File

tests/modules/components_test/components_test.module, line 30
Test module.

Code

function components_test_protected_twig_namespaces_alter(array &$protectedNamespaces) {

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