Problem/Motivation

Actually when we want to export a single configuration file we have to manually copy and paste content on file manually.

Steps to reproduce

Go to url /admin/config/development/configuration/single/export and select a single configuration.

Proposed resolution

It would be helpfull to have a button to download the configuration file and avoid to manually copy and paste to the file.

User interface changes

Add a Download button in bottom of the page.

CommentFileSizeAuthor
#9 Single-export--download.png145.45 KBprashant.c

Issue fork drupal-3201567

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

abarrio created an issue. See original summary.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

prashant.c’s picture

prashant.c’s picture

Status: Active » Needs review
StatusFileSize
new145.45 KB

Included code to achieve the following functionalities:

1. Show the "Download" button specifically on the single export page at "admin/config/development/configuration/single/export".

2. Upon clicking the "Download" button, a YAML file with the configuration name will be downloaded to your local system.

Single Export Download

Requesting code and usability reviews, as well as any feedback. Appreciate your input. Thank you.

Hardik_Patel_12 made their first commit to this issue’s fork.

smustgrave’s picture

This will need test coverage

IS is incomplete as this will be a UI change.

CR will be needed.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.