function ImageToolkitOperationManagerInterface::getToolkitOperation
Same name in other branches
- 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface::getToolkitOperation()
- 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface::getToolkitOperation()
- 11.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php \Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface::getToolkitOperation()
Returns a toolkit operation plugin instance.
Parameters
\Drupal\Core\ImageToolkit\ImageToolkitInterface $toolkit: The toolkit instance.
string $operation: The operation (e.g. "crop").
Return value
\Drupal\Core\ImageToolkit\ImageToolkitOperationInterface An instance of the requested toolkit operation plugin.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException When no plugin is available.
1 method overrides ImageToolkitOperationManagerInterface::getToolkitOperation()
- ImageToolkitOperationManager::getToolkitOperation in core/
lib/ Drupal/ Core/ ImageToolkit/ ImageToolkitOperationManager.php - Returns a toolkit operation plugin instance.
File
-
core/
lib/ Drupal/ Core/ ImageToolkit/ ImageToolkitOperationManagerInterface.php, line 24
Class
- ImageToolkitOperationManagerInterface
- Defines an interface for image toolkit operation managers.
Namespace
Drupal\Core\ImageToolkitCode
public function getToolkitOperation(ImageToolkitInterface $toolkit, $operation);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.