You are here

public function FakeTemplateWrapper::render in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\FakeTemplateWrapper::render()

Mocks the \Twig_TemplateWrapper render() method.

Parameters

array $context: (optional) Render context.

File

core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php, line 137

Class

FakeTemplateWrapper
Defines a fake template class to mock \Twig_TemplateWrapper.

Namespace

Drupal\Tests\help_topics\Unit

Code

public function render(array $context = []) {
  return $this->body;
}