Class

eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProvider\LocaleParameterProvider

class LocaleParameterProvider implements ParameterProviderInterface

Locale view parameter provider.

Methods

__construct(LocaleConverterInterface $localeConverter)

array getViewParameters(Field $field)

Returns a hash with 'locale' as key and locale string in POSIX format as value.

Details

at line 29
public __construct(LocaleConverterInterface $localeConverter)

Parameters

LocaleConverterInterface $localeConverter

at line 44
public array getViewParameters(Field $field)

Returns a hash with 'locale' as key and locale string in POSIX format as value.

Locale from request object will be used as locale if set, otherwise field language code will be converted to locale string.

Parameters

Field $field The field parameters are provided for.

Return Value

array