public ImageToolkitOperationManagerInterface::getToolkitOperation(ImageToolkitInterface $toolkit, $operation)
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.
File
- core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManagerInterface.php, line 24
Class
- ImageToolkitOperationManagerInterface
- Defines an interface for image toolkit operation managers.
Namespace
Drupal\Core\ImageToolkit
Code
public function getToolkitOperation(ImageToolkitInterface $toolkit, $operation);
Please login to continue.