Interface

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

interface ViewBuilderRegistry

A simple registry of ViewBuilders that uses the ViewBuilder's match() method to identify the builder.

Methods

ViewBuilder|null getFromRegistry(mixed $argument)

Returns the ViewBuilder matching the argument.

addToRegistry(array $objects)

Adds ViewBuilders from the $objects array to the registry.

Details

at line 19
public ViewBuilder|null getFromRegistry(mixed $argument)

Returns the ViewBuilder matching the argument.

Parameters

mixed $argument

Return Value

ViewBuilder|null The ViewBuilder, or null if there's none.

at line 26
public addToRegistry(array $objects)

Adds ViewBuilders from the $objects array to the registry.

Parameters

array $objects