You are here

public function ImagemagickToolkit::setSource in ImageMagick 8.3

Same name and namespace in other branches
  1. 8.2 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 538

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

public function setSource($source) {
  parent::setSource($source);
  $this
    ->arguments()
    ->setSource($source);
  return $this;
}