Class

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

class ContentViewBuilder implements ViewBuilder

Builds ContentView objects.

Methods

__construct(Repository $repository, AuthorizationCheckerInterface $authorizationChecker, Configurator $viewConfigurator, ParametersInjector $viewParametersInjector, ContentInfoLocationLoader $locationLoader = null)

bool matches(mixed $argument)

Tests if the builder matches the given argument.

ContentView|View buildView(array $parameters)

Details

at line 53
public __construct(Repository $repository, AuthorizationCheckerInterface $authorizationChecker, Configurator $viewConfigurator, ParametersInjector $viewParametersInjector, ContentInfoLocationLoader $locationLoader = null)

Parameters

Repository $repository
AuthorizationCheckerInterface $authorizationChecker
Configurator $viewConfigurator
ParametersInjector $viewParametersInjector
ContentInfoLocationLoader $locationLoader

at line 67
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 81
public ContentView|View buildView(array $parameters)

Parameters

array $parameters

Return Value

ContentView|View If both contentId and locationId parameters are missing

Exceptions

InvalidArgumentException If both contentId and locationId parameters are missing
UnauthorizedException