public function EasyMetaConfigurationForm::submitForm in Easymeta 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/ EasyMetaConfigurationForm.php, line 46
Class
- EasyMetaConfigurationForm
- Defines a form that configures forms module settings.
Namespace
Drupal\easymeta\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('easymeta.settings')
->set('use_og_meta', $values['use_og_meta'])
->save();
}