function FakeTemplateWrapper::__construct
Constructor.
Parameters
string $body: Body text to return from the render() method.
File
-
core/
modules/ help_topics/ tests/ src/ Unit/ HelpTopicTwigTest.php, line 127
Class
- FakeTemplateWrapper
- Defines a fake template class to mock \Twig\TemplateWrapper.
Namespace
Drupal\Tests\help_topics\UnitCode
public function __construct($body) {
$this->body = $body;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.