You are here

public static function MessageController::getLogLevelClassMap in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::getLogLevelClassMap()
  2. 8.2 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::getLogLevelClassMap()
  3. 8.3 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::getLogLevelClassMap()
  4. 8.4 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::getLogLevelClassMap()

Gets an array of log level classes.

Return value

array An array of log level classes.

1 call to MessageController::getLogLevelClassMap()
MessageController::overview in src/Controller/MessageController.php
Displays a listing of migration messages.

File

src/Controller/MessageController.php, line 54
Contains \Drupal\migrate_tools\Controller\MessageController.

Class

MessageController
Returns responses for migrate_tools message routes.

Namespace

Drupal\migrate_tools\Controller

Code

public static function getLogLevelClassMap() {
  return [
    MigrationInterface::MESSAGE_INFORMATIONAL => 'migrate-message-4',
    MigrationInterface::MESSAGE_NOTICE => 'migrate-message-3',
    MigrationInterface::MESSAGE_WARNING => 'migrate-message-2',
    MigrationInterface::MESSAGE_ERROR => 'migrate-message-1',
  ];
}