You are here

function PanopolyDemoMenu::prepareRow in Panopoly Demo 7

Default implementation of prepareRow(). This method is called from the source plugin upon first pulling the raw data from the source.

Parameters

$row: Object containing raw source data.

Return value

bool TRUE to process this row, FALSE to have the source skip it.

Overrides Migration::prepareRow

File

import/panopoly_demo.menu.inc, line 65
Migrations for Menu items.

Class

PanopolyDemoMenu
@file Migrations for Menu items.

Code

function prepareRow($row) {

  // Convert the alias to the node path.
  $node_path = drupal_lookup_path('source', $row->path);
  if ($node_path == FALSE) {
    return FALSE;
  }
  $row->path = $node_path;
}