class TagConverter extends PersistentObjectConverter (View source)

This converter transforms to \Neos\Media\Domain\Model\Tag objects.

Properties

protected array $sourceTypes
protected string $targetType
protected int $priority

Methods

Tag|TargetNotFoundError
convertFrom(mixed $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

Convert an object from $source to an \Neos\Media\Domain\Model\Tag implementation

Details

Tag|TargetNotFoundError convertFrom(mixed $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

Convert an object from $source to an \Neos\Media\Domain\Model\Tag implementation

Parameters

mixed $source
string $targetType

must implement 'Neos\Media\Domain\Model\Tag'

array $convertedChildProperties
PropertyMappingConfigurationInterface $configuration

Return Value

Tag|TargetNotFoundError

The converted Tag, a Validation Error or NULL

Exceptions

UnknownObjectException
InvalidTargetException