public function FileMetadataInterface::copyUriToTemp in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/FileMetadataInterface.php \Drupal\file_mdm\FileMetadataInterface::copyUriToTemp()
Copies the file at URI to a local temporary file.
Parameters
string $temp_uri: (optional) a URI to a temporary file. If NULL, a temp URI will be defined by the operation. Defaults to NULL.
Return value
bool TRUE if the file was copied successfully, FALSE otherwise.
1 method overrides FileMetadataInterface::copyUriToTemp()
- FileMetadata::copyUriToTemp in src/
FileMetadata.php - Copies the file at URI to a local temporary file.
File
- src/
FileMetadataInterface.php, line 67
Class
- FileMetadataInterface
- Provides an interface for file metadata objects.
Namespace
Drupal\file_mdmCode
public function copyUriToTemp($temp_uri = NULL);