You are here

public function UnflaggingForm::submitForm in Flag 8.4

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 FormInterface::submitForm

File

src/Form/UnflaggingForm.php, line 69

Class

UnflaggingForm
Provides the confirm form page for unflagging an entity.

Namespace

Drupal\flag\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  \Drupal::service('flag')
    ->unflag($this->flag, $this->entity);
}