public function ImagemagickExecArguments::escape in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 src/ImagemagickExecArguments.php \Drupal\imagemagick\ImagemagickExecArguments::escape()
Escapes a string.
Parameters
string $argument: The string to escape.
Return value
string An escaped string for use in the ImagemagickExecManagerInterface::execute method.
File
- src/
ImagemagickExecArguments.php, line 438
Class
- ImagemagickExecArguments
- Stores arguments for execution of ImageMagick/GraphicsMagick commands.
Namespace
Drupal\imagemagickCode
public function escape(string $argument) : string {
return $this->execManager
->escapeShellArg($argument);
}