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);
    }