public function AspectSwitcherImageEffect::defaultConfiguration in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/AspectSwitcherImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\AspectSwitcherImageEffect::defaultConfiguration()
- 8.2 src/Plugin/ImageEffect/AspectSwitcherImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\AspectSwitcherImageEffect::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ AspectSwitcherImageEffect.php, line 24
Class
- AspectSwitcherImageEffect
- Choose image styles to apply based on source image orientation.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'landscape_image_style' => '',
'portrait_image_style' => '',
'ratio_adjustment' => 1,
];
}