You are here

public function PhotosUploadInterface::saveImage in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x src/PhotosUploadInterface.php \Drupal\photos\PhotosUploadInterface::saveImage()

Attach image file to PhotosImage entity.

Parameters

\Drupal\file\Entity\File $file: The file entity.

Return value

bool TRUE if image saved successfully.

1 method overrides PhotosUploadInterface::saveImage()
PhotosUpload::saveImage in src/PhotosUpload.php
Attach image file to PhotosImage entity.

File

src/PhotosUploadInterface.php, line 46

Class

PhotosUploadInterface
Photos upload and file management functions.

Namespace

Drupal\photos

Code

public function saveImage(File $file);