function ImageToolkitInterface::save

Same name in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::save()
  2. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::save()
  3. 11.x 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.

2 methods override ImageToolkitInterface::save()
GDToolkit::save in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Writes an image resource to a destination file.
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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.