public function AnnotateImageEffect::defaultConfiguration in Imagick 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ AnnotateImageEffect.php, line 39
Class
- AnnotateImageEffect
- Annotates an image resource.
Namespace
Drupal\imagick\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'text_fieldset' => [
'text' => 'Annotation',
'font' => 'Helvetica',
'size' => 20,
'HEX' => '#000000',
],
'position_fieldset' => [
'anchor' => 'right-bottom',
'padding_x' => 20,
'padding_y' => 20,
],
];
}