Add horizontal tabs supports to FAPI

Created on 25 May 2011, about 13 years ago
Updated 25 May 2023, about 1 year ago

Problem/Motivation

Drupal Core provides Vertical Tabs as Render Element: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...

So you would expect that if there are vertical tabs, there should also be horizontal tabs.
But that's not the case!

See https://api.drupal.org/api/drupal/namespace/Drupal%21Core%21Render%21Ele...

Steps to reproduce

Try switching from
'#type' => 'vertical_tabs'
to
'#type' => 'horizontal_tabs'
and wonder horizontal_tabs isn't existing

Proposed resolution

Move the horizontal tabs implementation (and maybe also other field group types) from Field Group module β†’ into core and remove it from field_group. Also deprecate Horizontal Tabs β†’ module

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Take advantage of vertical tab, add horizontal tabs into core.

✨ Feature request
Status

Active

Component

Idea

Created by

πŸ‡­πŸ‡°Hong Kong droplet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024