function ConfigTranslationEditForm::buildForm
Same name in other branches
- 8.9.x core/modules/config_translation/src/Form/ConfigTranslationEditForm.php \Drupal\config_translation\Form\ConfigTranslationEditForm::buildForm()
- 10 core/modules/config_translation/src/Form/ConfigTranslationEditForm.php \Drupal\config_translation\Form\ConfigTranslationEditForm::buildForm()
- 11.x core/modules/config_translation/src/Form/ConfigTranslationEditForm.php \Drupal\config_translation\Form\ConfigTranslationEditForm::buildForm()
Overrides ConfigTranslationFormBase::buildForm
File
-
core/
modules/ config_translation/ src/ Form/ ConfigTranslationEditForm.php, line 25
Class
- ConfigTranslationEditForm
- Defines a form for editing configuration translations.
Namespace
Drupal\config_translation\FormCode
public function buildForm(array $form, FormStateInterface $form_state, RouteMatchInterface $route_match = NULL, $plugin_id = NULL, $langcode = NULL) {
$form = parent::buildForm($form, $form_state, $route_match, $plugin_id, $langcode);
$form['#title'] = $this->t('Edit @language translation for %label', [
'%label' => $this->mapper
->getTitle(),
'@language' => $this->language
->getName(),
]);
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.