protected function AnchorTrait::anchorOptions in Image Effects 8.3
Same name and namespace in other branches
- 8 src/Plugin/ImageEffect/AnchorTrait.php \Drupal\image_effects\Plugin\ImageEffect\AnchorTrait::anchorOptions()
- 8.2 src/Plugin/ImageEffect/AnchorTrait.php \Drupal\image_effects\Plugin\ImageEffect\AnchorTrait::anchorOptions()
Returns an array of options for anchoring an image.
Return value
array The array of anchor options.
2 calls to AnchorTrait::anchorOptions()
- MaskImageEffect::buildConfigurationForm in src/
Plugin/ ImageEffect/ MaskImageEffect.php - Form constructor.
- WatermarkImageEffect::buildConfigurationForm in src/
Plugin/ ImageEffect/ WatermarkImageEffect.php - Form constructor.
File
- src/
Plugin/ ImageEffect/ AnchorTrait.php, line 16
Class
- AnchorTrait
- Trait for anchor related functionalities.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
protected function anchorOptions() {
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'),
];
}