You are here

public static function DbLogController::getLogLevelClassMap in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/dblog/src/Controller/DbLogController.php \Drupal\dblog\Controller\DbLogController::getLogLevelClassMap()

Gets an array of log level classes.

Return value

array An array of log level classes.

2 calls to DbLogController::getLogLevelClassMap()
DbLogController::overview in core/modules/dblog/src/Controller/DbLogController.php
Displays a listing of database log messages.
DbLogTest::getSeverityConstant in core/modules/dblog/src/Tests/DbLogTest.php
Gets the watchdog severity constant corresponding to the CSS class.

File

core/modules/dblog/src/Controller/DbLogController.php, line 100
Contains \Drupal\dblog\Controller\DbLogController.

Class

DbLogController
Returns responses for dblog routes.

Namespace

Drupal\dblog\Controller

Code

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