AssetModelMappingStrategyInterface
interface AssetModelMappingStrategyInterface (View source)
Describes a strategy to find an asset model class based on the resource and optional source properties.
Methods
string
map(PersistentResource $resource, array $additionalProperties = [])
Map the given resource to a media model class.
Details
string
map(PersistentResource $resource, array $additionalProperties = [])
Map the given resource to a media model class.
MUST always return a fully qualified class name for a media model. If you need to fallback to different strategies you need to implement a "ConjunctionStrategy", but in the end you have to return a final class name.