class StubTwigTemplate
A stub of the Twig Template class for testing.
Hierarchy
- class \Drupal\Tests\Core\Template\StubTwigTemplate extends \Twig\Template
Expanded class hierarchy of StubTwigTemplate
1 file declares its use of StubTwigTemplate
- HelpTopicTwigTest.php in core/
modules/ help/ tests/ src/ Unit/ HelpTopicTwigTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Template/ StubTwigTemplate.php, line 13
Namespace
Drupal\Tests\Core\TemplateView source
class StubTwigTemplate extends Template {
/**
* {@inheritdoc}
*/
public function getTemplateName() : string {
return '';
}
/**
* {@inheritdoc}
*/
public function getDebugInfo() : array {
return [];
}
/**
* {@inheritdoc}
*/
public function getSourceContext() : Source {
throw new \LogicException(__METHOD__ . '() not implemented.');
}
/**
* {@inheritdoc}
*/
protected function doDisplay(array $context, array $blocks = []) : iterable {
throw new \LogicException(__METHOD__ . '() not implemented.');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
StubTwigTemplate::doDisplay | protected | function | |
StubTwigTemplate::getDebugInfo | public | function | |
StubTwigTemplate::getSourceContext | public | function | |
StubTwigTemplate::getTemplateName | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.