Ability to clone variant

Created on 15 March 2016, over 8 years ago
Updated 13 September 2023, 10 months ago

Problem/Motivation

Currently there is no way to clone a variant through the page manager edit page.

Proposed resolution

Add an operation for the variant that would allow the "clone" of the variant for use.

Remaining tasks

I will attach a patch shortly. It will need testing though.

User interface changes

When visiting `admin/structure/page_manager/manage/{page}` each variant has a new operation under the dropdown called clone.

✨ Feature request
Status

Needs review

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States evanjenkins

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.

  • πŸ‡ΊπŸ‡ΈUnited States grasmash

    For RC2, accessing the "general" tab of a variant causes this error with the patch:

    Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("page_variant") to generate a URL for route "entity.page_variant.clone_form". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 181 of core/lib/Drupal/Core/Routing/UrlGenerator.php).

Production build 0.69.0 2024