You are here

public function MigrateListFiles::__toString in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/files.inc \MigrateListFiles::__toString()

Our public face is the directories we're getting items from.

Overrides MigrateList::__toString

File

plugins/sources/files.inc, line 181
Support for migration from files sources.

Class

MigrateListFiles
Implementation of MigrateList, for retrieving a list of IDs to be migrated from a directory listing. Each item is a file, it's ID is the path.

Code

public function __toString() {
  if (is_array($this->listDirs)) {
    return implode(',', $this->listDirs);
  }
  else {
    return $this->listDirs;
  }
}