Class

eZ\Publish\Core\REST\Client\Values\ContentType\FieldDefinition

class FieldDefinition extends FieldDefinition

This class represents a field definition.

Methods

Validator[] getValidatorConfiguration()

This method returns the validators of this field definition supported by the field type.

array getFieldSettings()

This method returns settings for the field definition supported by the field type.

__construct(array $data = array())

string[] getNames()

Return the human readable name in all provided languages.

string|null getName(string|null $languageCode = null)

Return the name of the domain object in a given language.

string[] getDescriptions()

Return the human readable description in all provided languages.

string|null getDescription(string|null $languageCode = null)

Return the human readable description of the domain object in a given language.

Details

at line 107
public Validator[] getValidatorConfiguration()

This method returns the validators of this field definition supported by the field type.

Return Value

Validator[]

at line 117
public array getFieldSettings()

This method returns settings for the field definition supported by the field type.

Return Value

array

at line 63
public __construct(array $data = array())

Parameters

array $data

at line 73
public string[] getNames()

Return the human readable name in all provided languages.

The structure of the return value is: array( 'eng' => '', 'de' => '' );

Return Value

string[]

at line 81
public string|null getName(string|null $languageCode = null)

Return the name of the domain object in a given language.

Parameters

string|null $languageCode

Return Value

string|null The name for a given language, or null if $languageCode is not set or does not exist.

at line 89
public string[] getDescriptions()

Return the human readable description in all provided languages.

The structure of the return value is: array( 'eng' => '', 'de' => '' );

Return Value

string[]

at line 97
public string|null getDescription(string|null $languageCode = null)

Return the human readable description of the domain object in a given language.

Parameters

string|null $languageCode

Return Value

string|null The description for a given language, or null if $languageCode is not set or does not exist.