3 namespace Drupal\Core\ImageToolkit;
5 use Drupal\Component\Plugin\PluginInspectionInterface;
8 * Defines an interface for image toolkit operations.
10 * An image toolkit operation plugin provides a self-contained image
11 * manipulation routine, for a specific image toolkit. Examples of image
12 * toolkit operations are scaling, cropping, rotating, etc.
14 * @see \Drupal\Core\ImageToolkit\Annotation\ImageToolkitOperation
15 * @see \Drupal\Core\ImageToolkit\ImageToolkitOperationBase
16 * @see \Drupal\Core\ImageToolkit\ImageToolkitOperationManager
19 interface ImageToolkitOperationInterface extends PluginInspectionInterface {
22 * Applies a toolkit specific operation to an image.
24 * @param array $arguments
25 * An associative array of data to be used by the toolkit operation.
28 * TRUE if the operation was performed successfully, FALSE otherwise.
30 * @throws \InvalidArgumentException
31 * If one or more of the arguments are not valid.
33 public function apply(array $arguments);