public function ProdCheckBase::severity in Production check & Production monitor 8
Defines the severity of the check.
Return value
The severity
Overrides ProdCheckInterface::severity
2 methods override ProdCheckBase::severity()
- ModuleList::severity in src/
Plugin/ ProdCheck/ Modules/ ModuleList.php - Defines the severity of the check.
- Update::severity in src/
Plugin/ ProdCheck/ Modules/ Update.php - Defines the severity of the check.
File
- src/
Plugin/ ProdCheck/ ProdCheckBase.php, line 182
Class
- ProdCheckBase
- Base class for all the prod check plugins.
Namespace
Drupal\prod_check\Plugin\ProdCheckCode
public function severity() {
switch ($this->configuration['severity']) {
case ProdCheck::REQUIREMENT_INFO:
return $this->processor
->info();
break;
case ProdCheck::REQUIREMENT_ERROR:
return $this->processor
->error();
break;
default:
return $this->processor
->warning();
break;
}
}