protected function DrupalFieldablePanelsPanesMigration::createStub in Fieldable Panels Panes (FPP) 7
File
- includes/
fieldable_panels_pane.migrate.inc, line 424 - Support for fieldable_panels_pane destinations.
Class
- DrupalFieldablePanelsPanesMigration
- Handling specific to a Drupal 7 source for Fieldable Panels Panes.
Code
protected function createStub($migration) {
migrate_instrument_start('DrupalNodeMigration::createStub');
$entity = new stdClass();
$entity->title = t('Stub');
$entity->type = $this->destination
->getBundle();
fieldable_panels_panes_save($entity);
migrate_instrument_stop('DrupalFieldablePanelsPanesMigration::createStub');
if (isset($entity->fpid)) {
return array(
$entity->fpid,
);
}
else {
return FALSE;
}
}