public function ImagemagickExecArguments::getArguments in ImageMagick 8.2
Gets the command line arguments for the binary.
Return value
string[] The array of command line arguments.
Deprecated
in 8.x-2.3, will be removed in 8.x-3.0. Use ImagemagickExecArguments methods to manipulate arguments directly.
See also
https://www.drupal.org/project/imagemagick/issues/2925780
1 call to ImagemagickExecArguments::getArguments()
- ImagemagickExecArguments::findArgument in src/
ImagemagickExecArguments.php - Finds if a command line argument exists.
File
- src/
ImagemagickExecArguments.php, line 125
Class
- ImagemagickExecArguments
- Stores arguments for execution of ImageMagick/GraphicsMagick commands.
Namespace
Drupal\imagemagickCode
public function getArguments() {
@trigger_error('getArguments() is deprecated in 8.x-2.3, will be removed in 8.x-3.0. Use ImagemagickExecArguments methods to manipulate arguments directly. See https://www.drupal.org/project/imagemagick/issues/2925780.', E_USER_DEPRECATED);
$ret = [];
foreach ($this->arguments as $i => $a) {
if (in_array($a['mode'], [
self::POST_SOURCE,
self::INTERNAL,
])) {
$ret[$i] = ($a['mode'] === self::INTERNAL ? self::INTERNAL_ARGUMENT_IDENTIFIER : '') . $a['argument'];
}
}
return $ret;
}