You are here

protected function TextOverlayTrait::validateArguments in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/Operation/TextOverlayTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\TextOverlayTrait::validateArguments()
  2. 8 src/Plugin/ImageToolkit/Operation/TextOverlayTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\TextOverlayTrait::validateArguments()

File

src/Plugin/ImageToolkit/Operation/TextOverlayTrait.php, line 69

Class

TextOverlayTrait
Base trait for image_effects TextOverlay 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_overlay' operation");
  }
  return $arguments;
}