protected function AbstractAutomatedCrop::setCropBoxProperties in Automated Crop 8
Set all crop box properties from plugin configuration.
Return value
self AutomatedCrop plugin object.
1 call to AbstractAutomatedCrop::setCropBoxProperties()
- AbstractAutomatedCrop::initCropBox in src/
AbstractAutomatedCrop.php - Initializes the properties of the plugins according to the configurations.
File
- src/
AbstractAutomatedCrop.php, line 404
Class
- AbstractAutomatedCrop
- Provides a base class for each AutomatedCrop provider plugins.
Namespace
Drupal\automated_cropCode
protected function setCropBoxProperties() {
foreach ($this->configuration as $element => $value) {
if (array_key_exists($element, $this->cropBox) && !empty($value)) {
$this->cropBox[$element] = $value;
}
}
return $this;
}