Property | Type | Description | |
---|---|---|---|
$fields | eZ\Publish\API\Repository\Values\Content\Field[] | Field collection. |
Method | Description | |
---|---|---|
setField ( string $fieldDefIdentifier, mixed $value, string | null $language = null ) | Adds a field to the field collection. |
public setField ( string $fieldDefIdentifier, mixed $value, string | null $language = null ) | ||
$fieldDefIdentifier | string | the identifier of the field definition |
$value | mixed | Either a plain value which is understandable by the field type or an instance of a Value class provided by the field type |
$language | string | null | If not given on a translatable field the initial language is used, |