$config = new $this->configClass();
$config->setEntityManager($args->getEntityManager());
+ if (!$config->get('download_images_enabled')) {
+ return;
+ }
+
// field content has been updated
if ($args->hasChangedField('content')) {
$html = $this->downloadImages($config, $entity);
$config = new $this->configClass();
$config->setEntityManager($args->getEntityManager());
+ if (!$config->get('download_images_enabled')) {
+ return;
+ }
+
// update all images inside the html
$html = $this->downloadImages($config, $entity);
if (false !== $html) {