You are here

public function ImageToolkitInterface::save in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::save()
  2. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::save()

Writes an image resource to a destination file.

Parameters

string $destination: A string file URI or path where the image should be saved.

Return value

bool TRUE on success, FALSE on failure.

1 method overrides ImageToolkitInterface::save()
TestToolkit::save in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Writes an image resource to a destination file.

File

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

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function save($destination);