public function ImagemagickToolkit::getPackage in ImageMagick 8.2
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getPackage()
Gets the binaries package in use.
Parameters
string $package: (optional) Force the graphics package.
Return value
string The default package ('imagemagick'|'graphicsmagick'), or the $package argument.
Deprecated
in 8.x-2.3, will be removed in 8.x-3.0. Use ImagemagickExecManagerInterface::getPackage() instead.
See also
https://www.drupal.org/project/imagemagick/issues/2938375
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 482
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function getPackage($package = NULL) {
@trigger_error('getPackage() is deprecated in 8.x-2.3, will be removed in 8.x-3.0. Use ImagemagickExecManagerInterface::getPackage() instead. See https://www.drupal.org/project/imagemagick/issues/2938375.', E_USER_DEPRECATED);
return $this
->getExecManager()
->getPackage($package);
}