public function BackgroundImageEffect::defaultConfiguration in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/BackgroundImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\BackgroundImageEffect::defaultConfiguration()
- 8.2 src/Plugin/ImageEffect/BackgroundImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\BackgroundImageEffect::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ BackgroundImageEffect.php, line 78
Class
- BackgroundImageEffect
- Class BackgroundImageEffect.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'placement' => 'center-center',
'x_offset' => 0,
'y_offset' => 0,
'opacity' => 100,
'background_image' => '',
] + parent::defaultConfiguration();
}