You are here

public function FileMetadataPluginBase::setLocalTempPath in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/FileMetadata/FileMetadataPluginBase.php \Drupal\file_mdm\Plugin\FileMetadata\FileMetadataPluginBase::setLocalTempPath()

Sets the local filesystem path to the file.

This is used to allow accessing local copies of files stored remotely, to minimise remote calls and allow functions that cannot access remote stream wrappers to operate locally.

Parameters

string $temp_path: A filesystem path.

Return value

$this

Overrides FileMetadataPluginInterface::setLocalTempPath

File

src/Plugin/FileMetadata/FileMetadataPluginBase.php, line 235

Class

FileMetadataPluginBase
Abstract implementation of a base File Metadata plugin.

Namespace

Drupal\file_mdm\Plugin\FileMetadata

Code

public function setLocalTempPath($temp_path) {
  $this->localTempPath = $temp_path;
  return $this;
}