public function AutoAspectEffect::defaultConfiguration in Auto image style 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ AutoAspectEffect.php, line 103
Class
- AutoAspectEffect
- Resizes an image resource.
Namespace
Drupal\auto_image_style\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'landscape' => NULL,
'portrait' => NULL,
'ratio_adjustment' => 1,
];
}