You are here

public function ImageToolkitInterface::setSource in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::setSource()

Sets the source path of the image file.

Parameters

string $source: The source path of the image file.

Return value

\Drupal\Core\ImageToolkit\ImageToolkitInterface An instance of the current toolkit object.

Throws

\BadMethodCallException After being set initially, the source image cannot be changed.

1 method overrides ImageToolkitInterface::setSource()
ImageToolkitBase::setSource in core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
Sets the source path of the image file.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 66
Contains \Drupal\Core\ImageToolkit\ImageToolkitInterface.

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function setSource($source);