protected function MaskTrait::arguments in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/Operation/MaskTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\MaskTrait::arguments()
- 8.2 src/Plugin/ImageToolkit/Operation/MaskTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\MaskTrait::arguments()
File
- src/
Plugin/ ImageToolkit/ Operation/ MaskTrait.php, line 15
Class
- MaskTrait
- Base trait for image_effects Mask operations.
Namespace
Drupal\image_effects\Plugin\ImageToolkit\OperationCode
protected function arguments() {
return [
'mask_image' => [
'description' => 'Mask image.',
],
'mask_width' => [
'description' => 'Width of mask image.',
'required' => FALSE,
'default' => NULL,
],
'mask_height' => [
'description' => 'Height of mask image.',
'required' => FALSE,
'default' => NULL,
],
'x_offset' => [
'description' => 'X offset for mask image.',
'required' => FALSE,
'default' => 0,
],
'y_offset' => [
'description' => 'Y offset for mask image.',
'required' => FALSE,
'default' => 0,
],
];
}