Class

eZ\Publish\Core\REST\Server\Controller\BinaryContent

class BinaryContent extends Controller

Binary content controller.

Methods

setInputDispatcher(Dispatcher $inputDispatcher)

from Controller
setRouter(RouterInterface $router)

from Controller
setRepository(Repository $repository)

from Controller
setRequestParser(RequestParser $requestParser)

from Controller
__construct(VariationHandler $imageVariationHandler)

Construct controller.

Variation getImageVariation(mixed $imageId, string $variationIdentifier)

Returns data about the image variation $variationIdentifier of image field $fieldId.

Details

in Controller at line 45
public setInputDispatcher(Dispatcher $inputDispatcher)

Parameters

Dispatcher $inputDispatcher

in Controller at line 50
public setRouter(RouterInterface $router)

Parameters

RouterInterface $router

in Controller at line 55
public setRepository(Repository $repository)

Parameters

Repository $repository

in Controller at line 60
public setRequestParser(RequestParser $requestParser)

Parameters

RequestParser $requestParser

at line 32
public __construct(VariationHandler $imageVariationHandler)

Construct controller.

Parameters

VariationHandler $imageVariationHandler

at line 51
public Variation getImageVariation(mixed $imageId, string $variationIdentifier)

Returns data about the image variation $variationIdentifier of image field $fieldId.

Will generate the alias if it hasn't been generated yet.

Parameters

mixed $imageId A custom ID that identifies the image field. Until v6.9, the format is {contentId}-{fieldId}. since v6.9, the format is {contentId}-{fieldId}-{versionNumber}. If the version number isn't specified, the default one is used.
string $variationIdentifier

Return Value

Variation

Exceptions

NotFoundException