PHP Интерфейс Neos\Media\Domain\Strategy\AssetModelMappingStrategyInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
map ( PersistentResource $resource, array $additionalProperties = [] ) : string Map the given resource to a media model class.

Описание методов

map() публичный Метод

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.
Результат string the determined target class name