You are here

public function LingotekManagementForm::resetFilterForm in Lingotek Translation 8

Form submission handler for resetting the filters.

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

src/Form/LingotekManagementForm.php, line 378
Contains \Drupal\Lingotek\Form\LingotekManagementForm.

Class

LingotekManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

public function resetFilterForm(array &$form, FormStateInterface $form_state) {

  /** @var PrivateTempStore $temp_store */
  $temp_store = $this->tempStoreFactory
    ->get('lingotek.management.filter.' . $this->entityTypeId);
  $temp_store
    ->delete('label');
  $temp_store
    ->delete('profile');
  $temp_store
    ->delete('source_language');
  $temp_store
    ->delete('bundle');
}