You are here

public function MigrateSimpleContentParser::getChunkCount in Migrate 7.2

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

Return the count of chunks in the current file.

If this returns 1, then getChunkIDs() is not called and the file is treated as a single chunk. To override this, set $alwaysUseChunkIDs to TRUE.

Return value

int The number of chunks in the current file.

Overrides MigrateContentParser::getChunkCount

File

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

Class

MigrateSimpleContentParser
Simple parser that doesn't actually parse anything - it just returns the whole file as a single chunk. This is the default parser used and is primarily for when your HTML files map one-to-one to nodes.

Code

public function getChunkCount() {
  return 1;
}