public SystemManager::getMaxSeverity(&$requirements)
Extracts the highest severity from the requirements array.
Parameters
$requirements: An array of requirements, in the same format as is returned by hook_requirements().
Return value
The highest severity in the array.
File
- core/modules/system/src/SystemManager.php, line 136
Class
- SystemManager
- System Manager Service.
Namespace
Drupal\system
Code
1 2 3 4 5 6 7 8 9 | public function getMaxSeverity(& $requirements ) { $severity = static ::REQUIREMENT_OK; foreach ( $requirements as $requirement ) { if (isset( $requirement [ 'severity' ])) { $severity = max( $severity , $requirement [ 'severity' ]); } } return $severity ; } |
Please login to continue.