public static function QuailApiSettings::get_default_severity in Quail API 8
Returns an array of quail test display levels, each initialized to TRUE.
Parameters
array|null $standards: (optional) Providing a valid array of standards as returned by QuailApiSettings::get_severity() and it will be properly converted into a standards list.
Return value
array An array of quail test display levels, each initialized to TRUE.
1 call to QuailApiSettings::get_default_severity()
- QuailApiValidation::validate in src/
QuailApiValidation.php - Perform accessibility validation of the given HTML snippet.
File
- src/
QuailApiSettings.php, line 347
Class
- QuailApiSettings
- Class QuailApiSettings.
Namespace
Drupal\quail_apiCode
public static function get_default_severity($severitys = NULL) {
if (is_null($severitys)) {
$severitys = static::get_severity();
}
$severity = [];
foreach ($severitys as $id => $value) {
if (isset($value['default'])) {
$severity[$value['id']] = $value['default'];
}
}
return $severity;
}