public function CropEffect::defaultConfiguration in Crop API 8
Same name and namespace in other branches
- 8.2 src/Plugin/ImageEffect/CropEffect.php \Drupal\crop\Plugin\ImageEffect\CropEffect::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ CropEffect.php, line 126
Class
- CropEffect
- Crops an image resource.
Namespace
Drupal\crop\Plugin\ImageEffectCode
public function defaultConfiguration() {
return parent::defaultConfiguration() + [
'crop_type' => NULL,
];
}