protected function FileCopy::isLocationUnchanged in Migrate Plus 8.2
Determines if the source and destination URIs represent identical paths.
If either URI is a remote stream, will return FALSE.
Parameters
string $source: The source URI.
string $destination: The destination URI.
Return value
bool TRUE if the source and destination URIs refer to the same physical path, otherwise FALSE.
1 call to FileCopy::isLocationUnchanged()
- FileCopy::transform in src/
Plugin/ migrate/ process/ FileCopy.php - Performs the associated process.
File
- src/
Plugin/ migrate/ process/ FileCopy.php, line 191
Class
- FileCopy
- Copy a file from one place into another.
Namespace
Drupal\migrate_plus\Plugin\migrate\processCode
protected function isLocationUnchanged($source, $destination) {
if ($this
->isLocalUri($source) && $this
->isLocalUri($destination)) {
return $this->fileSystem
->realpath($source) === $this->fileSystem
->realpath($destination);
}
return FALSE;
}