You are here

protected function Replace::getReplacementImageToolkit in Image Replace 8

Returns the correctly typed replacement image toolkit for GD operations.

Parameters

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

Return value

\Drupal\system\Plugin\ImageToolkit\GDToolkit The correctly typed replacement image toolkit for GD operations.

1 call to Replace::getReplacementImageToolkit()
Replace::execute in src/Plugin/ImageToolkit/Operation/gd/Replace.php
Performs the actual manipulation on the image.

File

src/Plugin/ImageToolkit/Operation/gd/Replace.php, line 85

Class

Replace
Defines GD2 image_replace operation.

Namespace

Drupal\image_replace\Plugin\ImageToolkit\Operation\gd

Code

protected function getReplacementImageToolkit(array $arguments = []) {
  return $arguments['replacement_image']
    ->getToolkit();
}