Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileCopy.php

function FileCopy::isLocationUnchanged

Determines if the source and destination URIs represent identical paths.

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 core/modules/migrate/src/Plugin/migrate/process/FileCopy.php
Performs the associated process.

File

core/modules/migrate/src/Plugin/migrate/process/FileCopy.php, line 234

Class

FileCopy
Copies or moves a local file from one place into another.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

protected function isLocationUnchanged($source, $destination) {
    return $this->fileSystem
        ->realpath($source) === $this->fileSystem
        ->realpath($destination);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal