You are here

public function ImagemagickToolkit::removeArgument in ImageMagick 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::removeArgument()

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

See also

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

File

src/Plugin/ImageToolkit/ImagemagickToolkit.php, line 1144

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

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