public function AddWatermarkEffect::defaultConfiguration in Basic Watermark 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ AddWatermarkEffect.php, line 35
Class
- AddWatermarkEffect
- Converts an image resource.
Namespace
Drupal\basic_watermark\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'watermark_path' => NULL,
'apply_type' => 'once',
'position' => 'center-center',
'margins' => [
'left' => 0,
'top' => 0,
'right' => 0,
'bottom' => 0,
],
];
}