You are here

public function ImagemagickExecArguments::escape in ImageMagick 8.3

Same name and namespace in other branches
  1. 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\imagemagick

Code

public function escape(string $argument) : string {
  return $this->execManager
    ->escapeShellArg($argument);
}