ImageToolkitInterface::setSource

public ImageToolkitInterface::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.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 61

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

1
public function setSource($source);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.