Problem/Motivation

QuickTabs blocks only show the default "Configure block" contextual link. There is no quick way to edit the QuickTabs instance configuration from the frontend. Views blocks provide an "Edit view" contextual link via views_ui.links.contextual.yml for this purpose.

Proposed resolution

Add quicktabs.links.contextual.yml declaring an "Edit QuickTabs instance" link pointing to entity.quicktabs_instance.edit_form.

Attach #contextual_links['quicktabs_instance'] in QuickTabsInstance::getRenderArray() so the link appears on all QuickTabs instances
regardless of rendering context (blocks, nested QT tabs, direct renders).

User interface changes

An "Edit QuickTabs instance" contextual link appears alongside "Configure block" on QuickTabs blocks.

Issue fork quicktabs-3606816

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

loze created an issue. See original summary.

loze’s picture

Status: Active » Needs review
joelpittet’s picture

Status: Needs review » Fixed
StatusFileSize
new48.02 KB
new77.84 KB
new59.45 KB

Before:Before
After:After
After & Open:After and open

Thanks again @loze I have merged this in.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.