function ConfigTranslationTestHooks::formConfigTranslationAddFormAlter
Implements hook_form_FORM_ID_alter() for ConfigTranslationAddForm.
Changes the title to include the source language.
See also
\Drupal\config_translation\Form\ConfigTranslationAddForm
File
-
core/
modules/ config_translation/ tests/ modules/ config_translation_test/ src/ Hook/ ConfigTranslationTestHooks.php, line 72
Class
- ConfigTranslationTestHooks
- Hook implementations for config_translation_test.
Namespace
Drupal\config_translation_test\HookCode
public function formConfigTranslationAddFormAlter(&$form, FormStateInterface $form_state) : void {
if (\Drupal::state()->get('config_translation_test_alter_form_alter')) {
$form['#altered'] = TRUE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.