Copied!

FieldTypeProcessor

FieldTypeProcessor.php : 12

FieldTypeProcessor.

Methods

publicpostProcessFieldSettingsHash()

FieldTypeProcessor.php : 93

Perform manipulations on a received $outgoingSettingsHash.

public postProcessFieldSettingsHash(mixed $outgoingSettingsHash) : mixed

This method is called by the REST output visitors to allow a field type to post process the given $outgoingSettingsHash, which was previously generated using , before it is sent to the client. The return value of this method replaces $outgoingSettingsHash and must obey to the same rules as the original $outgoingSettingsHash.

Parameters

Name Type Default value Description
$outgoingSettingsHash mixed - -

Return values

mixed

Post processed hash

publicpostProcessValidatorConfigurationHash()

FieldTypeProcessor.php : 135

Perform manipulations on a received $outgoingValidatorConfigurationHash.

public postProcessValidatorConfigurationHash(mixed $outgoingValidatorConfigurationHash) : mixed

This method is called by the REST output visitors to allow a field type to post process the given $outgoingValidatorConfigurationHash, which was previously generated using , before it is sent to the client. The return value of this method replaces $outgoingValidatorConfigurationHash and must obey to the same rules as the original $outgoingValidatorConfigurationHash.

Parameters

Name Type Default value Description
$outgoingValidatorConfigurationHash mixed - -

Return values

mixed

Post processed hash

publicpostProcessValueHash()

FieldTypeProcessor.php : 51

Perform manipulations on an a generated $outgoingValueHash.

public postProcessValueHash(mixed $outgoingValueHash) : mixed

This method is called by the REST output visitors to allow a field type to post process the given $outgoingValueHash, which was previously generated using , before it is sent to the client. The return value of this method replaces $outgoingValueHash and must obey to the same rules as the original $outgoingValueHash.

Parameters

Name Type Default value Description
$outgoingValueHash mixed - -

Return values

mixed

Post processed hash

publicpreProcessFieldSettingsHash()

FieldTypeProcessor.php : 72

Perform manipulations on a received $incomingSettingsHash.

public preProcessFieldSettingsHash(mixed $incomingSettingsHash) : mixed

This method is called by the REST input parsers to allow a field type to pre process the given $incomingSettingsHash before it is handled by . The $incomingSettingsHash can be expected to conform to the rules that need to apply to hashes accepted by fieldSettingsFromHash(). The return value of this method replaces the $incomingSettingsHash.

Parameters

Name Type Default value Description
$incomingSettingsHash mixed - -

Return values

mixed

Pre processed hash

publicpreProcessValidatorConfigurationHash()

FieldTypeProcessor.php : 114

Perform manipulations on a received $incomingValidatorConfigurationHash.

public preProcessValidatorConfigurationHash(mixed $incomingValidatorConfigurationHash) : mixed

This method is called by the REST input parsers to allow a field type to pre process the given $incomingValidatorConfigurationHash before it is handled by . The $incomingValidatorConfigurationHash can be expected to conform to the rules that need to apply to hashes accepted by validatorConfigurationFromHash(). The return value of this method replaces the $incomingValidatorConfigurationHash.

Parameters

Name Type Default value Description
$incomingValidatorConfigurationHash mixed - -

Return values

mixed

Pre processed hash

publicpreProcessValueHash()

FieldTypeProcessor.php : 30

Perform manipulations on a received $incomingValueHash.

public preProcessValueHash(mixed $incomingValueHash) : mixed

This method is called by the REST input parsers to allow a field type to pre process the given $incomingValueHash before it is handled by . The $incomingValueHash can be expected to conform to the rules that need to apply to hashes accepted by fromHash(). The return value of this method replaces the $incomingValueHash.

Parameters

Name Type Default value Description
$incomingValueHash mixed - -

Return values

mixed

Pre processed hash