public function ErrorReporting::init in Production check & Production monitor 8
Initializes the check plugin.
Overrides ProdCheckBase::init
File
- src/
Plugin/ ProdCheck/ Settings/ ErrorReporting.php, line 32
Class
- ErrorReporting
- User register settings check
Namespace
Drupal\prod_check\Plugin\ProdCheck\SettingsCode
public function init() {
$this->current = $this->configFactory
->get('system.logging')
->get('error_level');
$this->options = [
ERROR_REPORTING_HIDE => $this
->t('Display no errors'),
ERROR_REPORTING_DISPLAY_SOME => $this
->t('Display errors and warnings'),
ERROR_REPORTING_DISPLAY_ALL => $this
->t('Display all messages'),
ERROR_REPORTING_DISPLAY_VERBOSE => $this
->t('Display all messages, plus backtrace information'),
];
}