public function ImagemagickToolkit::escapeShellArg in ImageMagick 8.2
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::escapeShellArg()
Escapes a string.
Parameters
string $arg: The string to escape.
Return value
string An escaped string for use in the ImagemagickExecManagerInterface::execute method.
Deprecated
in 8.x-2.3, will be removed in 8.x-3.0. Use ImageMagickExecArguments::escape() instead.
See also
https://www.drupal.org/project/imagemagick/issues/2936680
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 1196
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function escapeShellArg($arg) {
@trigger_error('escapeShellArg() is deprecated in 8.x-2.3, will be removed in 8.x-3.0. Use ImageMagickExecArguments::escape() instead. See https://www.drupal.org/project/imagemagick/issues/2936680.', E_USER_DEPRECATED);
return $this
->getExecManager()
->escapeShellArg($arg);
}