You are here

public function ImagemagickToolkit::addArgument in ImageMagick 8.2

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

Adds a command line argument.

Parameters

string $arg: The command line argument to be added.

Return value

$this

Deprecated

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

See also

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

File

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

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

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