You are here

public static function ContentLogController::getLogLevelClassMap in Content Synchronization 8

Same name and namespace in other branches
  1. 8.2 src/Controller/ContentLogController.php \Drupal\content_sync\Controller\ContentLogController::getLogLevelClassMap()
  2. 3.0.x src/Controller/ContentLogController.php \Drupal\content_sync\Controller\ContentLogController::getLogLevelClassMap()

Gets an array of log level classes.

Return value

array An array of log level classes.

1 call to ContentLogController::getLogLevelClassMap()
ContentLogController::overview in src/Controller/ContentLogController.php
Displays a listing of database log messages.

File

src/Controller/ContentLogController.php, line 96

Class

ContentLogController
Returns responses for content_sync routes.

Namespace

Drupal\content_sync\Controller

Code

public static function getLogLevelClassMap() {
  return [
    RfcLogLevel::DEBUG => 'cslog-debug',
    RfcLogLevel::INFO => 'cslog-info',
    RfcLogLevel::NOTICE => 'cslog-notice',
    RfcLogLevel::WARNING => 'cslog-warning',
    RfcLogLevel::ERROR => 'cslog-error',
    RfcLogLevel::CRITICAL => 'cslog-critical',
    RfcLogLevel::ALERT => 'cslog-alert',
    RfcLogLevel::EMERGENCY => 'cslog-emergency',
  ];
}