You are here

public function MigrateDestinationMenu::complete in Migrate 7.2

1 call to MigrateDestinationMenu::complete()
MigrateDestinationMenu::import in plugins/destinations/menu.inc
Import a single row.

File

plugins/destinations/menu.inc, line 126
Support for menu destinations.

Class

MigrateDestinationMenu
Destination class implementing migration into {menu_custom}.

Code

public function complete($menu, stdClass $row) {

  // We do nothing here but allow child classes to act.
  $migration = Migration::currentMigration();
  $menu->migrate = array(
    'machineName' => $migration
      ->getMachineName(),
  );

  // Call any general handlers.
  migrate_handler_invoke_all('menu', 'complete', $menu, $row);

  // Then call any complete handler for this specific Migration.
  if (method_exists($migration, 'complete')) {
    $migration
      ->complete($menu, $row);
  }
}