Skip to content

Instantly share code, notes, and snippets.

@StephanWeinhold
Created January 11, 2017 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StephanWeinhold/eb79821a591515b690860f92af2243e0 to your computer and use it in GitHub Desktop.
Save StephanWeinhold/eb79821a591515b690860f92af2243e0 to your computer and use it in GitHub Desktop.
Set an ExternalImage to a pimcore-object.
<?php
$imageObject = new Pimcore\Model\Object\Data\ExternalImage;
$imageObject->setUrl('http://www.url.com/to/your/image.jpg');
$pimcoreObject->setExternalImage($imageObject);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment