You are here

protected function ImageToolkitBase::getToolkitOperation in Drupal 8

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

Gets a toolkit operation plugin instance.

Parameters

string $operation: The toolkit operation requested.

Return value

\Drupal\Core\ImageToolkit\ImageToolkitOperationInterface An instance of the requested toolkit operation plugin.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 114

Class

ImageToolkitBase
Provides a base class for image toolkit plugins.

Namespace

Drupal\Core\ImageToolkit

Code

protected function getToolkitOperation($operation) {
  return $this->operationManager
    ->getToolkitOperation($this, $operation);
}