Class

eZ\Publish\Core\Helper\FieldsGroups\ArrayTranslatorFieldsGroupsList

class ArrayTranslatorFieldsGroupsList implements FieldsGroupsList

A fields groups list implementation based on settings (scalar values) injection.

Human-readable names are obtained using the translator, in the ezplatform_fields_groups domain.

Methods

__construct(TranslatorInterface $translator, $defaultGroup, array $groups)

array getGroups()

Returns the list of fields groups.

string getDefaultGroup()

Returns the default field group identifier.

Details

at line 27
public __construct(TranslatorInterface $translator, $defaultGroup, array $groups)

Parameters

TranslatorInterface $translator
$defaultGroup
array $groups

at line 38
public array getGroups()

Returns the list of fields groups.

The list is a hash, with the group identifier as the key, and the human readable string as the value. If groups are meant to be translated, they should be translated inside this service.

Return Value

array hash, with the group identifier as the key, and the human readable string as the value.

at line 43
public string getDefaultGroup()

Returns the default field group identifier.

Return Value

string