PHP 인터페이스 Neos\Media\Domain\Strategy\AssetModelMappingStrategyInterface

파일 보기 프로젝트 열기: neos/neos-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
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