You are here

public function ImagemagickExecArguments::escapeShellArg in ImageMagick 8.2

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 ::escape() instead.

See also

https://www.drupal.org/project/imagemagick/issues/2936680

File

src/ImagemagickExecArguments.php, line 615

Class

ImagemagickExecArguments
Stores arguments for execution of ImageMagick/GraphicsMagick commands.

Namespace

Drupal\imagemagick

Code

public function escapeShellArg($arg) {
  @trigger_error('escapeShellArg() is deprecated in 8.x-2.3, will be removed in 8.x-3.0. Use ::escape() instead. See https://www.drupal.org/project/imagemagick/issues/2936680.', E_USER_DEPRECATED);
  return $this
    ->escape($arg);
}