function FakeTemplateWrapper::__construct

Same name in other branches
  1. 8.9.x core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\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\Unit

Code

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.