Copied!

BaseRenderStrategy

BaseRenderStrategy.php : 16
Implements RenderStrategy

Properties

protected $defaultRenderer

BaseRenderStrategy.php : 22
protected string $defaultRenderer

protected $fragmentRenderers

BaseRenderStrategy.php : 19
protected array<string|int, FragmentRendererInterface$fragmentRenderers

protected $requestStack

BaseRenderStrategy.php : 28
protected RequestStack $requestStack

protected $siteAccess

BaseRenderStrategy.php : 25
protected SiteAccess $siteAccess

Methods

public__construct()

BaseRenderStrategy.php : 30
public __construct(iterable<string|int, mixed> $fragmentRenderers, string $defaultRenderer, SiteAccess $siteAccess, RequestStack $requestStack)

Parameters

Name Type Default value Description
$fragmentRenderers iterable<string|int, mixed> - -
$defaultRenderer string - -
$siteAccess SiteAccess - -
$requestStack RequestStack - -

protectedgetFragmentRenderer()

BaseRenderStrategy.php : 45
protected getFragmentRenderer(string $name) : FragmentRendererInterface

Parameters

Name Type Default value Description
$name string - -

Return values

FragmentRendererInterface