class MigrateController
Same name and namespace in other branches
- 11.x core/modules/migrate_drupal_ui/src/Controller/MigrateController.php \Drupal\migrate_drupal_ui\Controller\MigrateController
Provides controller methods for the migration.
Hierarchy
- class \Drupal\Core\Controller\ControllerBase extends \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\migrate_drupal_ui\Controller\MigrateController implements \Drupal\Core\Controller\ControllerBase
Expanded class hierarchy of MigrateController
File
-
core/
modules/ migrate_drupal_ui/ src/ Controller/ MigrateController.php, line 11
Namespace
Drupal\migrate_drupal_ui\ControllerView source
class MigrateController extends ControllerBase {
/**
* Sets a log filter and redirects to the log.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request.
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
* A redirect response object that may be returned by the controller.
*/
public function showLog(Request $request) {
// Sets both the session and the query parameter so that it works correctly
// with both the watchdog view and the fallback.
$request->getSession()
->set('dblog_overview_filter', [
'type' => [
'migrate_drupal_ui' => 'migrate_drupal_ui',
],
]);
return $this->redirect('dblog.overview', [], [
'query' => [
'type' => [
'migrate_drupal_ui',
],
],
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.