Class

eZ\Publish\Core\SignalSlot\FieldTypeService

class FieldTypeService implements FieldTypeService

FieldTypeService class.

Methods

__construct(FieldTypeService $service, SignalDispatcher $signalDispatcher)

Constructor.

FieldType[] getFieldTypes()

Returns a list of all field types.

FieldType getFieldType(string $identifier)

Returns the FieldType registered with the given identifier.

bool hasFieldType(string $identifier)

Returns if there is a FieldType registered under $identifier.

Details

at line 41
public __construct(FieldTypeService $service, SignalDispatcher $signalDispatcher)

Constructor.

Construct service object from aggregated service and signal dispatcher

Parameters

FieldTypeService $service
SignalDispatcher $signalDispatcher

at line 52
public FieldType[] getFieldTypes()

Returns a list of all field types.

Return Value

FieldType[]

at line 67
public FieldType getFieldType(string $identifier)

Returns the FieldType registered with the given identifier.

Parameters

string $identifier

Return Value

FieldType

Exceptions

NotFoundException if there is no FieldType registered with $identifier

at line 79
public bool hasFieldType(string $identifier)

Returns if there is a FieldType registered under $identifier.

Parameters

string $identifier

Return Value

bool