
| Current Path : /var/www/html/rocksensor1/web/core/modules/system/src/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/system/src/Form/LoggingForm.php |
<?php
namespace Drupal\system\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\RedundantEditableConfigNamesTrait;
/**
* Configure logging settings for this site.
*
* @internal
*/
class LoggingForm extends ConfigFormBase {
use RedundantEditableConfigNamesTrait;
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'system_logging_settings';
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['error_level'] = [
'#type' => 'radios',
'#title' => $this->t('Error messages to display'),
'#config_target' => 'system.logging:error_level',
'#options' => [
ERROR_REPORTING_HIDE => $this->t('None'),
ERROR_REPORTING_DISPLAY_SOME => $this->t('Errors and warnings'),
ERROR_REPORTING_DISPLAY_ALL => $this->t('All messages'),
ERROR_REPORTING_DISPLAY_VERBOSE => $this->t('All messages, with backtrace information'),
],
'#description' => $this->t('It is recommended that sites running on production environments do not display any errors.'),
];
return parent::buildForm($form, $form_state);
}
}