function ImageToolkitInterface::apply

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::apply()
  2. 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::apply()
  3. 11.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::apply()

Applies a toolkit operation to an image.

Parameters

string $operation: The toolkit operation to be processed.

array $arguments: An associative array of arguments to be passed to the toolkit operation, e.g. array('width' => 50, 'height' => 100, 'upscale' => TRUE).

Return value

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

1 method overrides ImageToolkitInterface::apply()
ImageToolkitBase::apply in core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
Applies a toolkit operation to an image.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 172

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function apply($operation, array $arguments = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.