You are here

public function EntityVisibilityForm::submitForm in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  2. 8.2 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  3. 8.3 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  4. 8.4 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  5. 8.5 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  6. 8.6 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  7. 8.7 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  8. 8.8 modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  9. 10.3.x modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  10. 10.0.x modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  11. 10.1.x modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()
  12. 10.2.x modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php \Drupal\entity_access_by_field\Form\EntityVisibilityForm::submitForm()

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

modules/custom/entity_access_by_field/src/Form/EntityVisibilityForm.php, line 61

Class

EntityVisibilityForm
Class EntityVisibilityForm.

Namespace

Drupal\entity_access_by_field\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->cleanValues();
  $this
    ->config('entity_access_by_field.settings')
    ->setData($form_state
    ->getValues())
    ->save();
  parent::submitForm($form, $form_state);
}