function TwigRegistryLoaderTest::assertTwigTemplate
Same name in other branches
- 8.9.x core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::assertTwigTemplate()
- 10 core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::assertTwigTemplate()
- 11.x core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::assertTwigTemplate()
Checks to see if a value is a Twig template.
@internal
1 call to TwigRegistryLoaderTest::assertTwigTemplate()
- TwigRegistryLoaderTest::testTemplateDiscovery in core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigRegistryLoaderTest.php - Tests template discovery using the Drupal theme registry.
File
-
core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigRegistryLoaderTest.php, line 46
Class
- TwigRegistryLoaderTest
- Tests Twig registry loader.
Namespace
Drupal\Tests\system\Functional\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.