You are here

public function ImagemagickExecArguments::removeArgument in ImageMagick 8.2

Removes a command line argument.

Parameters

int $index: The index of the command line argument to be removed.

Return value

$this

Deprecated

in 8.x-2.3, will be removed in 8.x-3.0. Use ::remove() instead.

See also

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

File

src/ImagemagickExecArguments.php, line 337

Class

ImagemagickExecArguments
Stores arguments for execution of ImageMagick/GraphicsMagick commands.

Namespace

Drupal\imagemagick

Code

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