public function MigrateDestinationMenuLinks::prepare in Migrate 7.2
Implementation of MigrateDestination::prepare().
1 call to MigrateDestinationMenuLinks::prepare()
- MigrateDestinationMenuLinks::import in plugins/
destinations/ menu_links.inc - Import a single row.
File
- plugins/
destinations/ menu_links.inc, line 158 - Support for menu link destinations.
Class
- MigrateDestinationMenuLinks
- Destination class implementing migration into {menu_links}.
Code
public function prepare($menu_link, stdClass $row) {
// We do nothing here but allow child classes to act.
$migration = Migration::currentMigration();
$menu_link->migrate = array(
'machineName' => $migration
->getMachineName(),
);
// Call any general handlers.
migrate_handler_invoke_all('menu_links', 'prepare', $menu_link, $row);
// Then call any prepare handler for this specific Migration.
if (method_exists($migration, 'prepare')) {
$migration
->prepare($menu_link, $row);
}
}