You are here

public function MigrateDestinationFieldCollection::__construct in Field collection 7

Basic initialization.

Parameters

string $bundle: Bundle name.

array $options: (optional) Options applied to collections.

Overrides MigrateDestinationEntity::__construct

File

./field_collection.migrate.inc, line 66
Support for the Migrate API.

Class

MigrateDestinationFieldCollection
Destination class implementing migration into field_collection.

Code

public function __construct($bundle, array $options = array()) {
  parent::__construct('field_collection_item', $bundle, $options);
  $this->hostEntityType = $options['host_entity_type'];
}