PHP Interface Neos\Media\Domain\Strategy\AssetModelMappingStrategyInterface

Afficher le fichier Open project: neos/neos-development-collection Interface Usage Examples

Méthodes publiques

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

Method Details

map() public méthode

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.
Résultat string the determined target class name