public function EntityTranslationUnifiedFormTabbedMode::fieldFormAlter in Entity Translation Unified Form 8
Overrides EntityTranslationUnifiedFormInlineMode::fieldFormAlter
File
- src/
Plugin/ EntityTranslationUnifiedFormMode/ EntityTranslationUnifiedFormTabbedMode.php, line 14
Class
- EntityTranslationUnifiedFormTabbedMode
- @EntityTranslationUnifiedFormMode ( id = "EntityTranslationUnifiedFormTabbedMode", admin_label = Plugin annotation @Translation("Tabbed Mode"), )
Namespace
Drupal\entity_translation_unified_form\Plugin\EntityTranslationUnifiedFormModeCode
public function fieldFormAlter($form, $form_state, &$field, $field_name, $language) {
if ($field_name == 'path') {
// path doesn't currently work well with tabs.
// use the inline mode for now
parent::alterTitle($form, $form_state, $field, $field_name, $language);
}
return;
}