You are here

public function ImagemagickExecArguments::escape in ImageMagick 8.2

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

Code

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