Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageToolkitInterface.php

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

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 61

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function setSource($source);
RSS feed
Powered by Drupal