You are here

public function FlickityGroupDisplayForm::submitForm in Flickity Carousel 8

Same name and namespace in other branches
  1. 8.2 src/Form/FlickityGroupDisplayForm.php \Drupal\flickity\Form\FlickityGroupDisplayForm::submitForm()
  2. 3.0.x src/Form/FlickityGroupDisplayForm.php \Drupal\flickity\Form\FlickityGroupDisplayForm::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 FormInterface::submitForm

File

src/Form/FlickityGroupDisplayForm.php, line 79
Contains \Drupal\flickity\Form\FlickityGroupDisplayForm.

Class

FlickityGroupDisplayForm
Implements a display form; because vertical tabs for settings groups looks sweet as.

Namespace

Drupal\flickity\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $group = $form_state
    ->getTriggeringElement();
  $form_state
    ->setRedirect('entity.flickity_group.edit_form', array(
    'flickity_group' => $group['#name'],
  ));
}