public function FileMetadata::setLocalTempPath in File metadata manager 8.2
Same name and namespace in other branches
- 8 src/FileMetadata.php \Drupal\file_mdm\FileMetadata::setLocalTempPath()
Sets the local filesystem URI to the temporary file.
Parameters
string $temp_uri: A URI to a temporary file.
Return value
$this
Overrides FileMetadataInterface::setLocalTempPath
1 call to FileMetadata::setLocalTempPath()
- FileMetadata::copyUriToTemp in src/
FileMetadata.php - Copies the file at URI to a local temporary file.
File
- src/
FileMetadata.php, line 107
Class
- FileMetadata
- A file metadata object.
Namespace
Drupal\file_mdmCode
public function setLocalTempPath($temp_uri) {
$this->localTempPath = $temp_uri;
foreach ($this->plugins as $plugin) {
$plugin
->setLocalTempPath($this->localTempPath);
}
return $this;
}