Same name and namespace in other branches
- 8.9.x core/modules/system/src/Form/LoggingForm.php \Drupal\system\Form\LoggingForm
- 9 core/modules/system/src/Form/LoggingForm.php \Drupal\system\Form\LoggingForm
Configure logging settings for this site.
@internal
Hierarchy
- class \Drupal\system\Form\LoggingForm extends \Drupal\Core\Form\ConfigFormBase uses RedundantEditableConfigNamesTrait
Expanded class hierarchy of LoggingForm
2 string references to 'LoggingForm'
- router_test.routing.yml in core/
modules/ system/ tests/ modules/ router_test_directory/ router_test.routing.yml - core/modules/system/tests/modules/router_test_directory/router_test.routing.yml
- system.routing.yml in core/
modules/ system/ system.routing.yml - core/modules/system/system.routing.yml
File
- core/
modules/ system/ src/ Form/ LoggingForm.php, line 14
Namespace
Drupal\system\FormView source
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigFormBaseTrait:: |
protected | function | Retrieves a configuration object. | |
LoggingForm:: |
public | function | ||
LoggingForm:: |
public | function | ||
RedundantEditableConfigNamesTrait:: |
protected | function |
Gets the configuration names that will be editable. Overrides ConfigFormBaseTrait:: |