Problem/Motivation
On a multilingual Drupal site, the "Translate" tab for views is quite hidden and only visible on /admin/structure/views/view/myview
. However, most editing is done on /admin/structure/views/view/myview/edit/mydisplay
, where the tab is not visible.
I've noted some similar sounding issues, but that target a different aspect: #2489654: Make displays appear like local tasks in the Views UI instead of custom UI design (a full revamp of the Views UI), #2804195: Views does not create parent local task for a default local task (focussed on links generated by views during sitebuilding)
Steps to reproduce
Have a view on a multilingual Drupal site using config_translation
.
Proposed resolution
Explicitly position entity.view.edit_display_form
below the entity.view.edit_form
local task, so the (View) "Edit" and (View) "Translate" tabs are always shown.
Remaining tasks
- How does this look on single language sites? => You see the 'Edit' tab
- Should we provide no task title, or can we use the display's title? => Seems fine
- Do we need tests? => Added
User interface changes
With the change, the "Edit" and "Translate" tabs (local task menu links) are visible when editing a View's display.