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

Each instance of this interface needs to be correctly registered in the ParameterProviderRegistry.
See also: eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderRegistryInterface
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getViewParameters ( eZ\Publish\API\Repository\Values\Content\Field $field ) : array Returns a hash of parameters to inject to the associated fieldtype's view template.

Method Details

getViewParameters() public method

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.
public getViewParameters ( eZ\Publish\API\Repository\Values\Content\Field $field ) : array
$field eZ\Publish\API\Repository\Values\Content\Field The field parameters are provided for.
return array