ImageInterfaceJsonSerializer
class ImageInterfaceJsonSerializer extends ImageInterfaceArrayPresenter (View source)
This converter transforms \Neos\Media\Domain\Model\ImageInterface (Image or ImageVariant) objects to json representations.
Properties
protected array | $sourceTypes | from ImageInterfaceArrayPresenter | |
protected string | $targetType | ||
protected int | $priority | ||
protected PersistenceManagerInterface | $persistenceManager | from ImageInterfaceArrayPresenter |
Methods
If $source has an identity, we have a persisted Image, and therefore this type converter should withdraw and let the PersistedObjectConverter kick in.
Convert all properties in the source array
Convert an object from \Neos\Media\Domain\Model\ImageInterface to a json representation.
Details
bool
canConvertFrom(mixed $source, string $targetType)
If $source has an identity, we have a persisted Image, and therefore this type converter should withdraw and let the PersistedObjectConverter kick in.
array
getSourceChildPropertiesToBeConverted(mixed $source)
Convert all properties in the source array
string|Error
convertFrom(ImageInterface $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
Convert an object from \Neos\Media\Domain\Model\ImageInterface to a json representation.