Drupal Test Helpers module API documentation - release 1.5.1

RendererStub extends Renderer
in package

A stub for the renderer service.

@package TestHelpers\DrupalServiceStubs

Table of Contents

Methods

__construct()  : mixed
{@inheritdoc}
doRender()  : string|MarkupInterface
{@inheritdoc}

Methods

__construct()

{@inheritdoc}

public __construct(mixed $controller_resolver, ThemeManagerInterface $theme, ElementInfoManagerInterface $element_info, PlaceholderGeneratorInterface $placeholder_generator, RenderCacheInterface $render_cache, RequestStack $request_stack, array<string|int, mixed> $renderer_config) : mixed
Parameters
$controller_resolver : mixed
$theme : ThemeManagerInterface
$element_info : ElementInfoManagerInterface
$placeholder_generator : PlaceholderGeneratorInterface
$render_cache : RenderCacheInterface
$request_stack : RequestStack
$renderer_config : array<string|int, mixed>

doRender()

{@inheritdoc}

protected doRender(array<string|int, mixed> &$elements, RenderContext $context) : string|MarkupInterface
Parameters
$elements : array<string|int, mixed>
$context : RenderContext
Return values
string|MarkupInterface

        
On this page

Search results