public function TestToolkit::save

Implements \Drupal\system\Plugin\ImageToolkitInterface::save().

Overrides ImageToolkitInterface::save

File

drupal/core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/ImageToolkit/TestToolkit.php, line 57
Contains \Drupal\image_test\Plugin\ImageToolkit\TestToolkit.

Class

TestToolkit
Defines a Test toolkit for image manipulation within Drupal.

Namespace

Drupal\image_test\Plugin\ImageToolkit

Code

public function save($image, $destination) {
  $this
    ->logCall('save', array(
    $image,
    $destination,
  ));

  // Return false so that image_save() doesn't try to chmod the destination
  // file that we didn't bother to create.
  return FALSE;
}