public function MigrateDestinationProfile2::__construct in Migrate Extras 7.2
Basic initialization
Parameters
string $bundle: A.k.a. the profile type.
array $options: Options applied to profiles.
Overrides MigrateDestinationEntity::__construct
File
- ./
profile2.inc, line 51 - Support for profile2 destinations.
Class
- MigrateDestinationProfile2
- Destination class implementing migration into nodes.
Code
public function __construct($bundle, array $options = array()) {
parent::__construct($this->entity_type, $bundle, $options);
$this->entity_info = entity_get_info('profile2');
$this->entity_key = $this->entity_info['entity keys']['id'];
}