public function ConfigForm::submitForm in Block Attributes 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- src/
Form/ ConfigForm.php, line 106 - Contains Drupal\block_attributes\Form\ConfigForm.
Class
- ConfigForm
- Class ConfigForm.
Namespace
Drupal\block_attributes\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $form_state
->get('config');
$this
->config('block_attributes.config')
->setData($config)
->save();
parent::submitForm($form, $form_state);
}