You are here

final public function ImageToolkitOperationBase::apply in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php \Drupal\Core\ImageToolkit\ImageToolkitOperationBase::apply()

Applies a toolkit specific operation to an image.

Parameters

array $arguments: An associative array of data to be used by the toolkit operation.

Return value

bool TRUE if the operation was performed successfully, FALSE otherwise.

Throws

\InvalidArgumentException If one or more of the arguments are not valid.

Overrides ImageToolkitOperationInterface::apply

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line 169

Class

ImageToolkitOperationBase
Provides a base class for image toolkit operation plugins.

Namespace

Drupal\Core\ImageToolkit

Code

public final function apply(array $arguments) {
  $arguments = $this
    ->prepareArguments($arguments);
  $arguments = $this
    ->validateArguments($arguments);
  return $this
    ->execute($arguments);
}