You are here

public function ImageToolkitInterface::save in Drupal 8

Same name and namespace in other branches
  1. 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.

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);