Copied!

RenderStrategy

RenderStrategy.php : 20

Strategy to decide, based on ValueObject descendant type, which renderer to pick (like RenderContentStrategy or else). To be used mainly by rendering abstraction Twig helpers, but may be used to inline rendering of Ibexa VOs anywhere.

Methods

publicrender()

RenderStrategy.php : 24
public render(ValueObject $valueObject, RenderOptions $options) : string

Parameters

Name Type Default value Description
$valueObject ValueObject - -
$options RenderOptions - -

Return values

string

publicsupports()

RenderStrategy.php : 22
public supports(ValueObject $valueObject) : bool

Parameters

Name Type Default value Description
$valueObject ValueObject - -

Return values

bool