public function AddWatermarkEffect::getPositionOptions in Basic Watermark 8
The watermark position options.
Return value
array An array with the options.
1 call to AddWatermarkEffect::getPositionOptions()
- AddWatermarkEffect::buildConfigurationForm in src/
Plugin/ ImageEffect/ AddWatermarkEffect.php - Form constructor.
File
- src/
Plugin/ ImageEffect/ AddWatermarkEffect.php, line 95
Class
- AddWatermarkEffect
- Converts an image resource.
Namespace
Drupal\basic_watermark\Plugin\ImageEffectCode
public function getPositionOptions() {
return [
'left-top' => $this
->t('Top left'),
'center-top' => $this
->t('Top center'),
'right-top' => $this
->t('Top right'),
'left-center' => $this
->t('Center left'),
'center-center' => $this
->t('Center'),
'right-center' => $this
->t('Center right'),
'left-bottom' => $this
->t('Bottom left'),
'center-bottom' => $this
->t('Bottom center'),
'right-bottom' => $this
->t('Bottom right'),
];
}