PHP Interface Neos\Media\Domain\Strategy\AssetModelMappingStrategyInterface

Mostrar archivo Open project: neos/neos-development-collection Interface Usage Examples

Public Methods

Method Description
map ( PersistentResource $resource, array $additionalProperties = [] ) : string Map the given resource to a media model class.

Method Details

map() public method

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.
public map ( PersistentResource $resource, array $additionalProperties = [] ) : string
$resource Neos\Flow\ResourceManagement\PersistentResource
$additionalProperties array Optional properties that can be taken into account for deciding the model class. what you get here can depend on the caller, so you should always fallback to something based on the resource.
return string the determined target class name