public function ImagemagickToolkit::setSource in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::setSource()
Sets the source path of the image file.
Parameters
string $source: The source path of the image file.
Return value
$this An instance of the current toolkit object.
Throws
\BadMethodCallException After being set initially, the source image cannot be changed.
Overrides ImageToolkitBase::setSource
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 621
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function setSource($source) {
parent::setSource($source);
$this
->arguments()
->setSource($source);
return $this;
}