Class

eZ\Publish\Core\REST\Common\FieldTypeProcessorRegistry

class FieldTypeProcessorRegistry

FieldTypeProcessorRegistry.

Methods

__construct(array $processors = array())

registerProcessor(string $fieldTypeIdentifier, FieldTypeProcessor $processor)

Registers $processor for $fieldTypeIdentifier.

bool hasProcessor(string $fieldTypeIdentifier)

Returns if a processor is registered for $fieldTypeIdentifier.

FieldTypeProcessor getProcessor(string $fieldTypeIdentifier)

Returns the processor for $fieldTypeIdentifier.

Details

at line 26
public __construct(array $processors = array())

Parameters

array $processors

at line 39
public registerProcessor(string $fieldTypeIdentifier, FieldTypeProcessor $processor)

Registers $processor for $fieldTypeIdentifier.

Parameters

string $fieldTypeIdentifier
FieldTypeProcessor $processor

at line 51
public bool hasProcessor(string $fieldTypeIdentifier)

Returns if a processor is registered for $fieldTypeIdentifier.

Parameters

string $fieldTypeIdentifier

Return Value

bool

at line 65
public FieldTypeProcessor getProcessor(string $fieldTypeIdentifier)

Returns the processor for $fieldTypeIdentifier.

Parameters

string $fieldTypeIdentifier

Return Value

FieldTypeProcessor

Exceptions

RuntimeException if not processor is registered for $fieldTypeIdentifier