ImageToolkitBase::setSource

public function ImageToolkitBase::setSource

public ImageToolkitBase::setSource($source)

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.

Overrides 登录查看完整内容