function components_test_protected_twig_namespaces_alter in Components! 8.2
Same name and namespace in other branches
- 3.x 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 21 - Test module.
Code
function components_test_protected_twig_namespaces_alter(array &$protectedNamespaces) {
// Allow the "system" Twig namespace to be altered.
unset($protectedNamespaces['system']);
}