function ImageToolkitBase::getToolkitOperation

Same name in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php \Drupal\Core\ImageToolkit\ImageToolkitBase::getToolkitOperation()
  2. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php \Drupal\Core\ImageToolkit\ImageToolkitBase::getToolkitOperation()
  3. 11.x 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);
}

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