Interface

eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderInterface

interface ParameterProviderInterface

Interface for services providing additional parameters to a fieldtype's view template (using ezrenderfield() helper).

Each instance of this interface needs to be correctly registered in the ParameterProviderRegistry.

Methods

array getViewParameters(Field $field)

Returns a hash of parameters to inject to the associated fieldtype's view template.

Details

at line 32
public array getViewParameters(Field $field)

Returns a hash of parameters to inject to the associated fieldtype's view template.

Returned parameters will only be available for associated field type.

Key is the parameter name (the variable name exposed in the template, in the 'parameters' array). Value is the parameter's value.

Parameters

Field $field The field parameters are provided for.

Return Value

array