You are here

public function TestToolkit::apply in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php \Drupal\image_test\Plugin\ImageToolkit\TestToolkit::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.

Overrides ImageToolkitBase::apply

File

core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php, line 259

Class

TestToolkit
Defines a Test toolkit for image manipulation within Drupal.

Namespace

Drupal\image_test\Plugin\ImageToolkit

Code

public function apply($operation, array $arguments = []) {
  $this
    ->logCall('apply', func_get_args());
  return TRUE;
}