Class

eZ\Publish\Core\REST\Common\FieldTypeProcessor\ImageProcessor

class ImageProcessor extends BinaryInputProcessor

Methods

__construct(string $temporaryDirectory, RouterInterface $router, array $variations)

mixed preProcessValueHash(mixed $incomingValueHash)

Perform manipulations on a received $incomingValueHash.

postProcessValueHash($outgoingValueHash)

{@inheritdoc}

Details

at line 43
public __construct(string $temporaryDirectory, RouterInterface $router, array $variations)

Parameters

string $temporaryDirectory
RouterInterface $router
array $variations array of variations identifiers

at line 50
public mixed preProcessValueHash(mixed $incomingValueHash)

Perform manipulations on a received $incomingValueHash.

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 {@link eZ\Publish\SPI\FieldType\FieldType::fromHash()}. 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

mixed $incomingValueHash

Return Value

mixed Pre processed hash

at line 62
public postProcessValueHash($outgoingValueHash)

{@inheritdoc}

Parameters

$outgoingValueHash