function MessageForm::resetForm

Same name in other branches
  1. 11.x core/modules/migrate/src/Form/MessageForm.php \Drupal\migrate\Form\MessageForm::resetForm()

Resets the filter form.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

core/modules/migrate/src/Form/MessageForm.php, line 114

Class

MessageForm
Migrate messages form.

Namespace

Drupal\migrate\Form

Code

public function resetForm(array $form, FormStateInterface $form_state) : void {
    $this->getRequest()
        ->getSession()
        ->remove('migration_messages_overview_filter');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.