class TestLoader in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php \Symfony\Component\Validator\Tests\Mapping\Factory\TestLoader
- 8 core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php \Drupal\twig_loader_test\Loader\TestLoader
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php \Drupal\twig_loader_test\Loader\TestLoader
A test Twig loader.
Hierarchy
- class \Drupal\twig_loader_test\Loader\TestLoader implements \Drupal\twig_loader_test\Loader\Twig_LoaderInterface, \Drupal\twig_loader_test\Loader\Twig_ExistsLoaderInterface
Expanded class hierarchy of TestLoader
1 string reference to 'TestLoader'
- twig_loader_test.services.yml in core/
modules/ system/ tests/ modules/ twig_loader_test/ twig_loader_test.services.yml - core/modules/system/tests/modules/twig_loader_test/twig_loader_test.services.yml
1 service uses TestLoader
- twig_loader_test.twig.test_loader in core/
modules/ system/ tests/ modules/ twig_loader_test/ twig_loader_test.services.yml - Drupal\twig_loader_test\Loader\TestLoader
File
- core/
modules/ system/ tests/ modules/ twig_loader_test/ src/ Loader/ TestLoader.php, line 15 - Contains \Drupal\twig_loader_test\Loader\TestLoader.
Namespace
Drupal\twig_loader_test\LoaderView source
class TestLoader implements \Twig_LoaderInterface, \Twig_ExistsLoaderInterface {
/**
* {@inheritdoc}
*/
public function getSource($name) {
if ($name == 'kittens') {
return $name;
}
else {
return 'cats';
}
}
/**
* {@inheritdoc}
*/
public function exists($name) {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function getCacheKey($name) {
return $name;
}
/**
* {@inheritdoc}
*/
public function isFresh($name, $time) {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestLoader:: |
public | function | ||
TestLoader:: |
public | function | ||
TestLoader:: |
public | function | ||
TestLoader:: |
public | function |