Commit ec82684f authored by woprrr's avatar woprrr Committed by woprrr

Issue #2905099 by woprrr, fgm: Crops applied in an image style are not marked...

Issue #2905099 by woprrr, fgm: Crops applied in an image style are not marked as dependencies for the image style
parent 64470907
......@@ -192,4 +192,17 @@ class CropEffect extends ConfigurableImageEffectBase implements ContainerFactory
$dimensions['height'] = $size['height'];
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
$dependencies = parent::calculateDependencies();
if (isset($this->configuration['crop_type']) && $crop_type = $this->typeStorage->load($this->configuration['crop_type'])) {
$dependencies[$crop_type->getConfigDependencyKey()] = [$crop_type->getConfigDependencyName()];
}
return $dependencies;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment