Neos\Media\Domain\Model\ImageVariant::setResource PHP 메소드

setResource() 공개 메소드

Setting the image resource on an ImageVariant is not allowed, this method will throw a RuntimeException.
public setResource ( PersistentResource $resource ) : void
$resource Neos\Flow\ResourceManagement\PersistentResource
리턴 void
    public function setResource(PersistentResource $resource)
    {
        throw new \RuntimeException('Setting the resource on an ImageVariant is not supported.', 1366627480);
    }