You are here

protected function TextToWrapperTrait::validateArguments in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/Operation/TextToWrapperTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\TextToWrapperTrait::validateArguments()
  2. 8 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\Operation

Code

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;
}