You are here

protected function MigrateUIWizard::getSteps in Migrate 7.2

Get the list of steps currently defined.

Return value

An array of MigrateUIStep objects, in the order defined, keyed by the step name.

1 call to MigrateUIWizard::getSteps()
MigrateUIWizard::addExtender in migrate_ui/migrate_ui.wizard.inc
Add a wizard extender.

File

migrate_ui/migrate_ui.wizard.inc, line 155
Migration wizard framework.

Class

MigrateUIWizard
The base class for migration wizards. Extend this class to implement a wizard UI for importing into Drupal from a given source format (Drupal, WordPress, etc.).

Code

protected function getSteps() {
  $steps = array();
  $steps[$this->firstStep
    ->getName()] = $this->firstStep;
  $next_step = $this->firstStep->nextStep;
  while (!is_null($next_step)) {
    $steps[$next_step
      ->getName()] = $next_step;
    $next_step = $next_step->nextStep;
  }
  return $steps;
}