- $config = new $this->configClass();
- $config->setEntityManager($args->getEntityManager());
-
- // update all images inside the html
- $html = $this->downloadImages($config, $entity);
- if (false !== $html) {
- $entity->setContent($html);
- }
-
- // update preview picture
- $previewPicture = $this->downloadPreviewImage($config, $entity);
- if (false !== $previewPicture) {
- $entity->setPreviewPicture($previewPicture);
- }