public function ImagemagickToolkit::findArgument in ImageMagick 8.2
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::findArgument()
Finds if a command line argument exists.
Parameters
string $arg: The command line argument to be found.
Return value
bool Returns the array key for the argument if it is found in the array, FALSE otherwise.
Deprecated
in 8.x-2.3, will be removed in 8.x-3.0. Use ImageMagickExecArguments::find() instead.
See also
https://www.drupal.org/project/imagemagick/issues/2925780
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 1126
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function findArgument($arg) {
@trigger_error('findArgument() is deprecated in 8.x-2.3, will be removed in 8.x-3.0. Use ImageMagickExecArguments::find() instead. See https://www.drupal.org/project/imagemagick/issues/2925780.', E_USER_DEPRECATED);
return $this
->arguments()
->findArgument($arg);
}