You are here

public function MigrateController::showLog in Migrate Upgrade 8

Sets a log filter and redirects to the log.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse A redirect response object that may be returned by the controller.

1 string reference to 'MigrateController::showLog'
migrate_upgrade.routing.yml in ./migrate_upgrade.routing.yml
migrate_upgrade.routing.yml

File

src/Controller/MigrateController.php, line 23
Contains \Drupal\migrate_upgrade\Controller\MigrateController.

Class

MigrateController
Provides controller methods for the migration.

Namespace

Drupal\migrate_upgrade\Controller

Code

public function showLog() {
  $_SESSION['dblog_overview_filter'] = [];
  $_SESSION['dblog_overview_filter']['type'] = [
    'migrate_upgrade' => 'migrate_upgrade',
  ];
  return $this
    ->redirect('dblog.overview');
}