Class

eZ\Publish\Core\MVC\Symfony\View\Builder\BlockViewBuilder

class BlockViewBuilder implements ViewBuilder

Builds BlockView objects.

Methods

__construct(PageService $pageService, Configurator $viewConfigurator, ParametersInjector $viewParametersInjector)

bool matches(mixed $argument)

Tests if the builder matches the given argument.

View buildView(array $parameters)

Builds the View based on $parameters.

Details

at line 29
public __construct(PageService $pageService, Configurator $viewConfigurator, ParametersInjector $viewParametersInjector)

Parameters

PageService $pageService
Configurator $viewConfigurator
ParametersInjector $viewParametersInjector

at line 39
public bool matches(mixed $argument)

Tests if the builder matches the given argument.

Parameters

mixed $argument Anything the builder can decide against. Example: a controller's request string.

Return Value

bool true if the ViewBuilder matches the argument, false otherwise.

at line 44
public View buildView(array $parameters)

Builds the View based on $parameters.

Parameters

array $parameters

Return Value

View An implementation of the View interface