Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id: fm_quiz
- label: FM Quiz
- migration_group: quizzes
- source:
- plugin: fm_quiz
- key: source
- destination:
- plugin: fm_quiz
- process:
- type:
- plugin: default_value
- default_value: quiz
- title: title
- uid:
- plugin: default_value
- default_value: 1
- sticky:
- plugin: default_value
- default_value: 0
- <?php
- /**
- * @file
- * Contains Drupalfm_quizPluginmigratedestinationFMQuiz.
- */
- namespace Drupalfm_quizPluginmigratedestination;
- use DrupalmigratePluginmigratedestinationEntityContentBase;
- use DrupalmigrateRow;
- /**
- * @MigrateDestination(
- * id = "fm_quiz"
- * )
- */
- class FMQuiz extends EntityContentBase {
- /**
- * {@inheritdoc}
- */
- public function import(Row $row, array $old_destination_id_values = array()) {
- $node = $this->getEntity($row, $old_destination_id_values);
- print_r($node);
- return [$node->id()];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement