File
- core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ IncorrectConfigTargetForm.php, line 27
Class
Namespace
Drupal\form_test\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['missing_key'] = [
'#type' => 'textfield',
'#title' => t('Missing key'),
'#config_target' => 'form_test.object:does_not_exist',
];
return parent::buildForm($form, $form_state);
}