You are here

public function EntityTranslationUnifiedFormTabbedMode::getFieldGroupThemeWrapper in Entity Translation Unified Form 8

Overrides EntityTranslationUnifiedFormInlineMode::getFieldGroupThemeWrapper

File

src/Plugin/EntityTranslationUnifiedFormMode/EntityTranslationUnifiedFormTabbedMode.php, line 22

Class

EntityTranslationUnifiedFormTabbedMode
@EntityTranslationUnifiedFormMode ( id = "EntityTranslationUnifiedFormTabbedMode", admin_label = Plugin annotation @Translation("Tabbed Mode"), )

Namespace

Drupal\entity_translation_unified_form\Plugin\EntityTranslationUnifiedFormMode

Code

public function getFieldGroupThemeWrapper($form, $form_state, $field, $field_name) {
  if ($field_name == 'path') {

    // path doesn't currently work well with tabs.
    // use the inline wrapper for now
    return 'entity_translation_unified_form__inline__wrapper';
  }
  return 'entity_translation_unified_form__a11y_accordion_tabs__wrapper';
}