LingotekProfileEditForm.php in Lingotek Translation 3.4.x
Same filename and directory in other branches
- 8 src/Form/LingotekProfileEditForm.php
- 8.2 src/Form/LingotekProfileEditForm.php
- 4.0.x src/Form/LingotekProfileEditForm.php
- 3.0.x src/Form/LingotekProfileEditForm.php
- 3.1.x src/Form/LingotekProfileEditForm.php
- 3.2.x src/Form/LingotekProfileEditForm.php
- 3.3.x src/Form/LingotekProfileEditForm.php
- 3.5.x src/Form/LingotekProfileEditForm.php
- 3.6.x src/Form/LingotekProfileEditForm.php
- 3.7.x src/Form/LingotekProfileEditForm.php
- 3.8.x src/Form/LingotekProfileEditForm.php
Namespace
Drupal\lingotek\FormFile
src/Form/LingotekProfileEditForm.phpView 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
Name | Description |
---|---|
LingotekProfileEditForm | Provides a form for lingotek profiles edition. |