LingotekProfileAddForm.php in Lingotek Translation 3.4.x
Same filename and directory in other branches
- 8 src/Form/LingotekProfileAddForm.php
- 8.2 src/Form/LingotekProfileAddForm.php
- 4.0.x src/Form/LingotekProfileAddForm.php
- 3.0.x src/Form/LingotekProfileAddForm.php
- 3.1.x src/Form/LingotekProfileAddForm.php
- 3.2.x src/Form/LingotekProfileAddForm.php
- 3.3.x src/Form/LingotekProfileAddForm.php
- 3.5.x src/Form/LingotekProfileAddForm.php
- 3.6.x src/Form/LingotekProfileAddForm.php
- 3.7.x src/Form/LingotekProfileAddForm.php
- 3.8.x src/Form/LingotekProfileAddForm.php
Namespace
Drupal\lingotek\FormFile
src/Form/LingotekProfileAddForm.phpView source
<?php
namespace Drupal\lingotek\Form;
use Drupal\Core\Form\FormStateInterface;
/**
* Provides a form for lingotek profiles addition.
*/
class LingotekProfileAddForm extends LingotekProfileFormBase {
/**
* {@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 saved.'));
$form_state
->setRedirect('lingotek.settings');
}
}
Classes
Name | Description |
---|---|
LingotekProfileAddForm | Provides a form for lingotek profiles addition. |