public function ImagemagickExecArguments::escape in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 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.
1 call to ImagemagickExecArguments::escape()
- ImagemagickExecArguments::escapeShellArg in src/
ImagemagickExecArguments.php - Escapes a string.
File
- src/
ImagemagickExecArguments.php, line 630
Class
- ImagemagickExecArguments
- Stores arguments for execution of ImageMagick/GraphicsMagick commands.
Namespace
Drupal\imagemagickCode
public function escape($argument) {
return $this->execManager
->escapeShellArg($argument);
}