You are here

LingotekProfileEditForm.php in Lingotek Translation 3.4.x

File

src/Form/LingotekProfileEditForm.php
View source
<?php

namespace Drupal\lingotek\Form;

use Drupal\Core\Form\FormStateInterface;

/**
 * Provides a form for lingotek profiles edition.
 */
class LingotekProfileEditForm extends LingotekProfileFormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'lingotek_profile_edit_form';
  }

  /**
   * {@inheritdoc}
   */
  public function save(array $form, FormStateInterface $form_state) {
    parent::save($form, $form_state);
    $this
      ->messenger()
      ->addStatus($this
      ->t('The Lingotek profile has been successfully edited.'));
    $form_state
      ->setRedirect('lingotek.settings');
  }

}

Classes

Namesort descending Description
LingotekProfileEditForm Provides a form for lingotek profiles edition.