Verified Commit d4abe119 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3063856 by quietone, alexpott, rpayanm, benjifisher, fredysan, Wim...

Issue #3063856 by quietone, alexpott, rpayanm, benjifisher, fredysan, Wim Leers, Ratan Priya, bsnodgrass, heddn: Add ability to view migrate_message table data
parent fdaf17f5
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ public function fields() {
    return [
      'id' => $this->t('The field ID.'),
      'field_name' => $this->t('The field name.'),
      'entity_type' => $this->t('Entity type'),
      'type' => $this->t('The field type.'),
      'module' => $this->t('The module that implements the field type.'),
      'active' => $this->t('The field status.'),
+12 −6
Original line number Diff line number Diff line
@@ -105,13 +105,19 @@ public function fields() {
      'p9' => $this->t('The ninth mlid in the materialized path. See p1.'),
      'updated' => $this->t('Flag that indicates that this link was generated during the update from Drupal 5.'),
    ];
    $schema = $this->getDatabase()->schema();

    // The database connection may not exist, for example, when building
    // the Migrate Message form.
    if ($source_database = $this->database) {
      $schema = $source_database->schema();
      if ($schema->fieldExists('menu_links', 'language')) {
        $fields['language'] = $this->t("Menu link language code.");
      }
      if ($schema->fieldExists('menu_links', 'i18n_tsid')) {
        $fields['i18n_tsid'] = $this->t("Translation set id.");
      }
    }

    return $fields;
  }

+6 −0
Original line number Diff line number Diff line
migrate.messages:
  title: Migration messages
  parent: system.admin_reports
  description: View the migration messages.
  route_name: migrate.messages
  weight: 0
+2 −0
Original line number Diff line number Diff line
view migration messages:
  title: 'View migration messages'
+15 −0
Original line number Diff line number Diff line
migrate.messages:
  path: '/admin/reports/migration-messages'
  defaults:
    _controller: '\Drupal\migrate\Controller\MigrateMessageController::overview'
    _title: 'Migration messages'
  requirements:
    _permission: 'view migration messages'

migrate.messages.detail:
  path: '/admin/reports/migration-messages/{migration_id}'
  defaults:
    _controller: '\Drupal\migrate\Controller\MigrateMessageController::details'
    _title_callback: '\Drupal\migrate\Controller\MigrateMessageController::title'
  requirements:
    _permission: 'view migration messages'
Loading