function TwigNamespaceTest::assertTwigTemplate
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php \Drupal\Tests\system\Kernel\Theme\TwigNamespaceTest::assertTwigTemplate()
- 8.9.x core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php \Drupal\Tests\system\Kernel\Theme\TwigNamespaceTest::assertTwigTemplate()
- 10 core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php \Drupal\Tests\system\Kernel\Theme\TwigNamespaceTest::assertTwigTemplate()
Checks to see if a value is a twig template.
@internal
1 call to TwigNamespaceTest::assertTwigTemplate()
- TwigNamespaceTest::testTemplateDiscovery in core/
modules/ system/ tests/ src/ Kernel/ Theme/ TwigNamespaceTest.php - Tests template discovery using namespaces.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Theme/ TwigNamespaceTest.php, line 46
Class
- TwigNamespaceTest
- Tests Twig namespaces.
Namespace
Drupal\Tests\system\Kernel\ThemeCode
public function assertTwigTemplate($value, string $message = '') : void {
$this->assertInstanceOf(TemplateWrapper::class, $value, $message);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.