Class

eZ\Publish\Core\Repository\Helper\FieldTypeRegistry

class FieldTypeRegistry

Registry for SPI FieldTypes.

Methods

__construct(array $fieldTypes = array())

FieldType[] getFieldTypes()

Returns a list of all SPI FieldTypes.

FieldType getFieldType(string $identifier)

Return a SPI FieldType object.

bool hasFieldType(string $identifier)

Returns if there is a SPI FieldType registered under $identifier.

Details

at line 30
public __construct(array $fieldTypes = array())

Parameters

array $fieldTypes Hash of SPI FieldTypes where key is identifier

at line 40
public FieldType[] getFieldTypes()

Returns a list of all SPI FieldTypes.

Return Value

FieldType[]

at line 61
public FieldType getFieldType(string $identifier)

Return a SPI FieldType object.

Parameters

string $identifier

Return Value

FieldType

Exceptions

FieldTypeNotFoundException If $identifier was not found

at line 89
public bool hasFieldType(string $identifier)

Returns if there is a SPI FieldType registered under $identifier.

Parameters

string $identifier

Return Value

bool