You are here

public function SlickForm::save in Slick Carousel 8

Overrides Drupal\Core\Entity\EntityFormController::save().

Overrides SlickFormBase::save

File

slick_ui/src/Form/SlickForm.php, line 757

Class

SlickForm
Extends base form for slick instance configuration form.

Namespace

Drupal\slick_ui\Form

Code

public function save(array $form, FormStateInterface $form_state) {
  parent::save($form, $form_state);
  $form_state
    ->setRedirectUrl($this->entity
    ->toUrl('collection'));
}