function ImageToolkitOperationBase::setToolkit

Set the image toolkit instance for this operation.

Parameters

\Drupal\Core\ImageToolkit\ImageToolkitInterface $toolkit: The image toolkit in use.

Overrides ImageToolkitOperationInterface::setToolkit

File

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

Class

ImageToolkitOperationBase
Provides a base class for image toolkit operation plugins.

Namespace

Drupal\Core\ImageToolkit

Code

public function setToolkit(ImageToolkitInterface $toolkit) : void {
  $this->toolkit = $toolkit;
}

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