function TestExtension::getName
Same name in other branches
- 9 core/modules/system/tests/modules/twig_extension_test/src/TwigExtension/TestExtension.php \Drupal\twig_extension_test\TwigExtension\TestExtension::getName()
- 8.9.x core/modules/system/tests/modules/twig_extension_test/src/TwigExtension/TestExtension.php \Drupal\twig_extension_test\TwigExtension\TestExtension::getName()
- 11.x core/modules/system/tests/modules/twig_extension_test/src/TwigExtension/TestExtension.php \Drupal\twig_extension_test\TwigExtension\TestExtension::getName()
Gets a unique identifier for this Twig extension.
Return value
string A unique identifier for this Twig extension.
File
-
core/
modules/ system/ tests/ modules/ twig_extension_test/ src/ TwigExtension/ TestExtension.php, line 56
Class
- TestExtension
- A test Twig extension that adds a custom function and a custom filter.
Namespace
Drupal\twig_extension_test\TwigExtensionCode
public function getName() {
return 'twig_extension_test.test_extension';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.