protected function TextToWrapperTrait::validateArguments in Image Effects 8.3
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/Operation/TextToWrapperTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\TextToWrapperTrait::validateArguments()
- 8.2 src/Plugin/ImageToolkit/Operation/TextToWrapperTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\TextToWrapperTrait::validateArguments()
File
- src/
Plugin/ ImageToolkit/ Operation/ TextToWrapperTrait.php, line 117
Class
- TextToWrapperTrait
- Base trait for Text Overlay text-to-wrapper operations.
Namespace
Drupal\image_effects\Plugin\ImageToolkit\OperationCode
protected function validateArguments(array $arguments) {
if (empty($arguments['font_uri'])) {
throw new \InvalidArgumentException("No font file URI passed to the 'text_to_wrapper' operation");
}
return $arguments;
}