protected function ImagemagickImageToolkitOperationBase::escapeArgument in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickImageToolkitOperationBase.php \Drupal\imagemagick\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickImageToolkitOperationBase::escapeArgument()
Helper to escape a command line argument.
Parameters
string $argument: The string to escape.
Return value
string An escaped string for use in the ImagemagickExecManagerInterface::execute method.
2 calls to ImagemagickImageToolkitOperationBase::escapeArgument()
- CreateNew::execute in src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ CreateNew.php - Performs the actual manipulation on the image.
- Rotate::execute in src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ Rotate.php - Performs the actual manipulation on the image.
File
- src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ ImagemagickImageToolkitOperationBase.php, line 66
Class
- ImagemagickImageToolkitOperationBase
- Base image toolkit operation class for Imagemagick.
Namespace
Drupal\imagemagick\Plugin\ImageToolkit\Operation\imagemagickCode
protected function escapeArgument(string $argument) : string {
return $this
->getToolkit()
->arguments()
->escape($argument);
}