Class

eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeCollectionFactory

class FieldTypeCollectionFactory implements ContainerAwareInterface

Methods

registerFieldType(string $fieldTypeServiceId, string $fieldTypeAlias)

Registers an eZ Publish field type.

Closure[] getFieldTypes()

Returns registered field types (as closures to be lazy loaded in the public API).

registerConcreteFieldTypeIdentifier(string $fieldTypeIdentifier)

Registers $fieldTypeIdentifier as "concrete" FieldType (i.e.

getConcreteFieldTypesIdentifiers()

Details

at line 39
public registerFieldType(string $fieldTypeServiceId, string $fieldTypeAlias)

Registers an eZ Publish field type.

Field types are being registered as a closure so that they will be lazy loaded.

Parameters

string $fieldTypeServiceId The field type service Id
string $fieldTypeAlias The field type alias (e.g. "ezstring")

at line 52
public Closure[] getFieldTypes()

Returns registered field types (as closures to be lazy loaded in the public API).

Return Value

Closure[]

at line 62
public registerConcreteFieldTypeIdentifier(string $fieldTypeIdentifier)

Registers $fieldTypeIdentifier as "concrete" FieldType (i.e.

not using NullFieldType).

Parameters

string $fieldTypeIdentifier

at line 67
public getConcreteFieldTypesIdentifiers()