You are here

public function PullForm::resetSort in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::resetSort()

Form submission handler to reset the sort.

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

modules/entity_share_client/src/Form/PullForm.php, line 833

Class

PullForm
Form controller to pull entities.

Namespace

Drupal\entity_share_client\Form

Code

public function resetSort(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('entity_share_client.admin_content_pull_form', [], [
    'query' => [
      'remote' => $form_state
        ->getValue('remote'),
      'channel' => $form_state
        ->getValue('channel'),
      'search' => $form_state
        ->getValue('search'),
    ],
  ]);
}