public function MigrateSimpleContentParser::getChunk in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/files.inc \MigrateSimpleContentParser::getChunk()
Get a single chunk from the current file.
Parameters
$id: The ID for the chunk. This is one of the IDs returned by getChunkIDs().
Return value
The content of the chunk.
Overrides MigrateContentParser::getChunk
File
- plugins/
sources/ files.inc, line 104 - 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 getChunk($id) {
return $this->content;
}