You are here

abstract public function DrupalVersion::getPath in Drupal-to-Drupal data migration 7.2

@abstract Given a source path (e.g., node/1234 or user/35), return the alias from the source database.

Parameters

$pattern:

$id:

3 methods override DrupalVersion::getPath()
DrupalVersion5::getPath in d5/d5.inc
Given a source path (e.g, 'node/123'), return the first alias for that path.
DrupalVersion6::getPath in d6/d6.inc
Given a source path (e.g, 'node/123'), return the first alias for that path.
DrupalVersion7::getPath in d7/d7.inc
Given a source path (e.g, 'node/123'), return the first alias for that path.

File

./migrate_d2d.migrate.inc, line 305
Base classes for all Drupal-to-Drupal migration classes.

Class

DrupalVersion
There should be an implementation of this abstract class, named DrupalVersion{version #}, for each Drupal version supported as a source. It will implement any functions needed by multiple version-specific classes (e.g., nodes as well as users).

Code

public abstract function getPath($source);